Skip to content

Commit

Permalink
javadoc of SubstitutionVisitor
Browse files Browse the repository at this point in the history
  • Loading branch information
pvojtechovsky committed Jun 8, 2017
1 parent ae4a972 commit 43dec86
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions src/main/java/spoon/support/template/SubstitutionVisitor.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,17 @@ class DoNotFurtherTemplateThisElement extends SpoonException {
* This algorithm replaces:
* <ul>
* <li>parameters of {@link CtExecutable}
* <li>
* <li>
* <li>
* <li>
* <li>
* <li>
* <li>
* <li>
* <li>substring of variable name occurrence in any simpleName of any {@link CtNamedElement}
* <li>substring of variable name occurrence in any simpleName of any {@link CtReference}
* <li>foreach block whose expression is a parameter
* <li>length of array of parameters is replaced by number Literal equal to size of the array
* <li>field parameter with value of type TemplateParameter is replaced by clone of this TemplateParameter
* <li>field parameter with value of type Class is replaced by class access (e.g.: AnClass.class)
* <li>field parameter with value of type Enum is replaced by Enum access (e.g.: AnEnum...)
* <li>field parameter with array value is replaced by Array Literal
* <li>field parameter with other value is replaced by Literal
* <li>invocation of method {@link TemplateParameter#S()}) is replaced by value of type {@link CtCodeElement}
* <li>{@link CtTypeReference} with name equal to variable name by the reference to type defined by variable value
* </ul>
*/
public class SubstitutionVisitor extends CtScanner {
Expand Down

0 comments on commit 43dec86

Please sign in to comment.