| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final ClassNode | |
| pack-priv static final Class | |
| pack-priv static final ClassNode | |
| pack-priv static final String | |
| private static final ClassNode |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static void | |
| private static void | |
| private static Statement | |
| private static void | appendValue(BlockStatement body, Expression result, VariableExpression first, Expression value, String name, boolean includeNames, boolean ignoreNulls, boolean canBeSelf)
|
| private static Expression | calculateToStringStatements(ClassNode cNode, boolean includeSuper, boolean includeFields, boolean includeSuperFields, List<String> excludes, final List<String> includes, boolean includeNames, boolean ignoreNulls, boolean includePackage, boolean includeSuperProperties, boolean allProperties, BlockStatement body, boolean allNames)
|
| private static boolean | |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static void | createToString(ClassNode cNode, boolean includeSuper, boolean includeFields, List<String> excludes, List<String> includes, boolean includeNames, boolean ignoreNulls, boolean includePackage, boolean cache, boolean includeSuperProperties, boolean allProperties, boolean allNames, boolean includeSuperFields)
|
| private static Statement | |
| public void | visit(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, 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. |
| INVOKER_TYPE | back to summary |
|---|---|
| private static final ClassNode INVOKER_TYPE | |
| MY_CLASS | back to summary |
|---|---|
| pack-priv static final Class<T> MY_CLASS | |
| MY_TYPE | back to summary |
|---|---|
| pack-priv static final ClassNode MY_TYPE | |
| MY_TYPE_NAME | back to summary |
|---|---|
| pack-priv static final String MY_TYPE_NAME | |
| STRINGBUILDER_TYPE | back to summary |
|---|---|
| private static final ClassNode STRINGBUILDER_TYPE | |
| ToStringASTTransformation | back to summary |
|---|---|
| public ToStringASTTransformation() | |
| appendCommaIfNotFirst | back to summary |
|---|---|
| private static void appendCommaIfNotFirst(BlockStatement body, Expression result, VariableExpression first) | |
| appendPrefix | back to summary |
|---|---|
| private static void appendPrefix(BlockStatement body, Expression result, String name, boolean includeNames) | |
| appendS | back to summary |
|---|---|
| private static Statement appendS(Expression result, Expression expr) | |
| appendValue | back to summary |
|---|---|
| private static void appendValue(BlockStatement body, Expression result, VariableExpression first, Expression value, String name, boolean includeNames, boolean ignoreNulls, boolean canBeSelf) | |
| calculateToStringStatements | back to summary |
|---|---|
| private static Expression calculateToStringStatements(ClassNode cNode, boolean includeSuper, boolean includeFields, boolean includeSuperFields, List<String> excludes, final List<String> includes, boolean includeNames, boolean ignoreNulls, boolean includePackage, boolean includeSuperProperties, boolean allProperties, BlockStatement body, boolean allNames) | |
| canBeSelf | back to summary |
|---|---|
| private static boolean canBeSelf(ClassNode cNode, ClassNode valueType) | |
| createToString | back to summary |
|---|---|
| public static void createToString(ClassNode cNode, boolean includeSuper, boolean includeFields, List<String> excludes, List<String> includes, boolean includeNames) | |
| createToString | back to summary |
|---|---|
| public static void createToString(ClassNode cNode, boolean includeSuper, boolean includeFields, List<String> excludes, List<String> includes, boolean includeNames, boolean ignoreNulls) | |
| createToString | back to summary |
|---|---|
| public static void createToString(ClassNode cNode, boolean includeSuper, boolean includeFields, List<String> excludes, List<String> includes, boolean includeNames, boolean ignoreNulls, boolean includePackage) | |
| createToString | back to summary |
|---|---|
| public static void createToString(ClassNode cNode, boolean includeSuper, boolean includeFields, List<String> excludes, List<String> includes, boolean includeNames, boolean ignoreNulls, boolean includePackage, boolean cache) | |
| createToString | back to summary |
|---|---|
| public static void createToString(ClassNode cNode, boolean includeSuper, boolean includeFields, List<String> excludes, List<String> includes, boolean includeNames, boolean ignoreNulls, boolean includePackage, boolean cache, boolean includeSuperProperties) | |
| createToString | back to summary |
|---|---|
| public static void createToString(ClassNode cNode, boolean includeSuper, boolean includeFields, List<String> excludes, List<String> includes, boolean includeNames, boolean ignoreNulls, boolean includePackage, boolean cache, boolean includeSuperProperties, boolean allProperties) | |
| createToString | back to summary |
|---|---|
| public static void createToString(ClassNode cNode, boolean includeSuper, boolean includeFields, List<String> excludes, List<String> includes, boolean includeNames, boolean ignoreNulls, boolean includePackage, boolean cache, boolean includeSuperProperties, boolean allProperties, boolean allNames, boolean includeSuperFields) | |
| toStringPropertyName | back to summary |
|---|---|
| private static Statement toStringPropertyName(Expression result, String fName) | |
| visit | back to summary |
|---|---|
| public void visit(ASTNode[] nodes, 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.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv boolean | |
| pack-priv String | |
| pack-priv Expression |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| canBeSelf | back to summary |
|---|---|
| pack-priv boolean canBeSelf | |
| name | back to summary |
|---|---|
| pack-priv String name | |
| value | back to summary |
|---|---|
| pack-priv Expression value | |
| ToStringElement | back to summary |
|---|---|
| pack-priv ToStringElement(Expression value, String name, boolean canBeSelf) | |