| Modifier and Type | Field and Description |
|---|---|
| private static final ClassNode | |
| private static final ClassNode | |
| private static final ClassNode | |
| private static final String | |
| private static final ClassNode |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static Expression | |
| private static Expression | |
| private void | createMapVariant(final MethodNode mNode, final AnnotationNode anno, final Parameter mapParam, final List<Parameter> genParams, final ClassNode cNode, final BlockStatement inner, final ArgumentListExpression args, final List<String> propNames)
|
| private static Expression | |
| private boolean | |
| private static Expression | namedParamValue(final Parameter mapParam, final String name, final ClassNode type, final boolean coerce, Expression defaultValue)
|
| private boolean | processDelegateParam(final MethodNode mNode, final Parameter mapParam, final ArgumentListExpression args, final List<String> propNames, final Parameter fromParam, final boolean coerce)
|
| private boolean | processExplicitNamedParam(final MethodNode mNode, final Parameter mapParam, final BlockStatement inner, final ArgumentListExpression args, final List<String> propNames, final Parameter fromParam, final boolean coerce)
|
| private boolean | processImplicitNamedParam(final MethodNode mNode, final Parameter mapParam, final BlockStatement inner, final ArgumentListExpression args, final List<String> propNames, final Parameter fromParam, final boolean coerce)
|
| public void | visit(final ASTNode[]
The ASTnodes when the call was triggered. Element 0 is the AnnotationNode that triggered this
annotation to be activated. Element 1 is the AnnotatedNode decorated, such as a MethodNode or ClassNode. For
global transformations it is usually safe to ignore this parameter. nodes, final SourceUnit The source unit being compiled. The source unit may contain several classes. For global transformations,
information about the AST can be retrieved from this object. source)Implements org. |
| ILLEGAL_ARGUMENT_TYPE | back to summary |
|---|---|
| private static final ClassNode ILLEGAL_ARGUMENT_TYPE | |
| NAMED_DELEGATE_TYPE | back to summary |
|---|---|
| private static final ClassNode NAMED_DELEGATE_TYPE | |
| NAMED_PARAM_TYPE | back to summary |
|---|---|
| private static final ClassNode NAMED_PARAM_TYPE | |
| NAMED_VARIANT | back to summary |
|---|---|
| private static final String NAMED_VARIANT | |
| NAMED_VARIANT_TYPE | back to summary |
|---|---|
| private static final ClassNode NAMED_VARIANT_TYPE | |
| NamedVariantASTTransformation | back to summary |
|---|---|
| public NamedVariantASTTransformation() | |
| asType | back to summary |
|---|---|
| private static Expression asType(final Expression value, final ClassNode type, final boolean coerce) | |
| containsKey | back to summary |
|---|---|
| private static Expression containsKey(final Parameter mapParam, final String name) | |
| createMapVariant | back to summary |
|---|---|
| private void createMapVariant(final MethodNode mNode, final AnnotationNode anno, final Parameter mapParam, final List<Parameter> genParams, final ClassNode cNode, final BlockStatement inner, final ArgumentListExpression args, final List<String> propNames) | |
| defaultValueX | back to summary |
|---|---|
| private static Expression defaultValueX(final ClassNode type) | |
| hasDuplicates | back to summary |
|---|---|
| private boolean hasDuplicates(final MethodNode mNode, final List<String> propNames, final String next) | |
| namedParamValue | back to summary |
|---|---|
| private static Expression namedParamValue(final Parameter mapParam, final String name, final ClassNode type, final boolean coerce, Expression defaultValue) | |
| processDelegateParam | back to summary |
|---|---|
| private boolean processDelegateParam(final MethodNode mNode, final Parameter mapParam, final ArgumentListExpression args, final List<String> propNames, final Parameter fromParam, final boolean coerce) | |
| processExplicitNamedParam | back to summary |
|---|---|
| private boolean processExplicitNamedParam(final MethodNode mNode, final Parameter mapParam, final BlockStatement inner, final ArgumentListExpression args, final List<String> propNames, final Parameter fromParam, final boolean coerce) | |
| processImplicitNamedParam | back to summary |
|---|---|
| private boolean processImplicitNamedParam(final MethodNode mNode, final Parameter mapParam, final BlockStatement inner, final ArgumentListExpression args, final List<String> propNames, final Parameter fromParam, final boolean coerce) | |
| visit | back to summary |
|---|---|
| public void visit(final ASTNode[] nodes, final SourceUnit source) Implements org. Doc from org. The method is invoked when an AST Transformation is active. For local transformations, it is invoked once each time the local annotation is encountered. For global transformations, it is invoked once for every source unit, which is typically a source file.
| |