Checks include:
| Modifier and Type | Class and Description |
|---|---|
| public static interface | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| public static final String | |
| public static final String | |
| private ClassNode | |
| public static final String | |
| private static final ClassNode | |
| public static final String | |
| private static final ClassNode | |
| private MethodNode | |
| private static final Parameter[] | |
| public static final String | |
| public static final String | |
| private static final ClassNode |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| protected void | addConstructor(final Parameter[] newParams, final ConstructorNode ctor, final Statement code, final ClassNode type)
|
| protected void | |
| private void | addCovariantMethods(final ClassNode classNode, final List<MethodNode> declaredMethods, final Map<String, MethodNode> abstractMethods, final Map<String, MethodNode> methodsToAdd, final Map<String, ClassNode> oldGenericsSpec)
|
| protected void | |
| protected void | addDefaultParameterConstructors(final ClassNode type)
Creates a new constructor for each combination of default parameter expressions. |
| protected void | addDefaultParameterMethods(final ClassNode type)
Creates a new method for each combination of default parameter expressions. |
| protected void | addDefaultParameters(final List<? extends MethodNode> methods, final Verifier.
Creates a new helper method for each combination of default parameter expressions. |
| protected void | |
| private static void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected MethodNode | |
| protected void | |
| protected void | |
| protected void | |
| private void | |
| protected void | |
| private static void | |
| public static String | |
| private static FieldNode | |
| private void | |
| private static void | |
| private static void | |
| private static void | |
| private static Parameter[] | |
| private static ClassNode | |
| protected Statement | |
| protected Statement | |
| private static boolean | |
| private static boolean | equalParametersWithGenerics(final MethodNode m1, final MethodNode m2, final Map<String, ClassNode> genericsSpec)
|
| private static boolean | |
| private static List | |
| public ClassNode | |
| private MethodNode | getCovariantImplementation(final MethodNode oldMethod, final MethodNode overridingMethod, Map<String, ClassNode> genericsSpec, final boolean ignoreError)
|
| private static Set | |
| protected FinalVariableAnalyzer. | |
| private static Statement | getImplicitThis$0Stmt(final List<Statement> statements)
When InnerClassVisitor adds |
| private static FieldNode | |
| public MethodNode | |
| public static long | |
| public static Long | |
| private static boolean | |
| private static boolean | |
| private boolean | |
| private static boolean | |
| private static String | |
| protected void | |
| private static FieldNode | |
| private static ASTNode | |
| private void | storeMissingCovariantMethods(final List<MethodNode> declaredMethods, final Map<String, MethodNode> methodsToAdd, final Map<String, ClassNode> genericsSpec, final List<MethodNode> methodNodeList)
|
| private void | storeMissingCovariantMethods(final Iterable<MethodNode> methods, final MethodNode method, final Map<String, MethodNode> methodsToAdd, final Map<String, ClassNode> genericsSpec, final boolean ignoreError)
|
| public static ConstantExpression | Returns: the same instance of constant expression if the type is already primitive, or a primitive constant if possible.a constant expression constantExpression)When constant expressions are created, the value is always wrapped to a non primitive type. |
| public void | visitClass(final ClassNode node)
Implements org. |
| public void | visitConstructor(final ConstructorNode node)
Implements org. |
| public void | visitField(final FieldNode node)
Implements org. |
| public void | |
| private void | visitGetter(final PropertyNode node, final Statement getterBlock, final int getterModifiers, final String getterName)
|
| public void | visitMethod(final MethodNode node)
Implements org. |
| public void | visitProperty(final PropertyNode node)
Implements org. |
| __TIMESTAMP | back to summary |
|---|---|
| public static final String __TIMESTAMP | |
| __TIMESTAMP__ | back to summary |
|---|---|
| public static final String __TIMESTAMP__ | |
| classNode | back to summary |
|---|---|
| private ClassNode classNode | |
| DEFAULT_PARAMETER_GENERATED | back to summary |
|---|---|
| public static final String DEFAULT_PARAMETER_GENERATED | |
| GENERATED_ANNOTATION | back to summary |
|---|---|
| private static final ClassNode GENERATED_ANNOTATION | |
| INITIAL_EXPRESSION | back to summary |
|---|---|
| public static final String INITIAL_EXPRESSION | |
| INTERNAL_ANNOTATION | back to summary |
|---|---|
| private static final ClassNode INTERNAL_ANNOTATION | |
| methodNode | back to summary |
|---|---|
| private MethodNode methodNode | |
| SET_METACLASS_PARAMS | back to summary |
|---|---|
| private static final Parameter[] SET_METACLASS_PARAMS | |
| STATIC_METACLASS_BOOL | back to summary |
|---|---|
| public static final String STATIC_METACLASS_BOOL | |
| SWAP_INIT | back to summary |
|---|---|
| public static final String SWAP_INIT | |
| TRANSIENT_ANNOTATION | back to summary |
|---|---|
| private static final ClassNode TRANSIENT_ANNOTATION | |
| Verifier | back to summary |
|---|---|
| public Verifier() | |
| addClosureCode | back to summary |
|---|---|
| protected void addClosureCode(InnerClassNode node) | |
| addConstructor | back to summary |
|---|---|
| protected void addConstructor(final Parameter[] newParams, final ConstructorNode ctor, final Statement code, final ClassNode type) | |
| addCovariantMethods | back to summary |
|---|---|
| protected void addCovariantMethods(final ClassNode classNode) | |
| addCovariantMethods | back to summary |
|---|---|
| private void addCovariantMethods(final ClassNode classNode, final List<MethodNode> declaredMethods, final Map<String, MethodNode> abstractMethods, final Map<String, MethodNode> methodsToAdd, final Map<String, ClassNode> oldGenericsSpec) | |
| addDefaultConstructor | back to summary |
|---|---|
| protected void addDefaultConstructor(final ClassNode node) | |
| addDefaultParameterConstructors | back to summary |
|---|---|
| protected void addDefaultParameterConstructors(final ClassNode type) Creates a new constructor for each combination of default parameter expressions. | |
| addDefaultParameterMethods | back to summary |
|---|---|
| protected void addDefaultParameterMethods(final ClassNode type) Creates a new method for each combination of default parameter expressions. | |
| addDefaultParameters | back to summary |
|---|---|
| protected void addDefaultParameters(final List<? extends MethodNode> methods, final Verifier. Creates a new helper method for each combination of default parameter expressions. | |
| addDefaultParameters | back to summary |
|---|---|
| protected void addDefaultParameters(final Verifier. | |
| addFastPathHelperFieldsAndHelperMethod | back to summary |
|---|---|
| private static void addFastPathHelperFieldsAndHelperMethod(final ClassNode node, final String classInternalName) | |
| addFieldInitialization | back to summary |
|---|---|
| protected void addFieldInitialization(final List<E> list, final List<E> staticList, final FieldNode fieldNode, final boolean isEnumClassNode, final List<E> initStmtsAfterEnumValuesInit, final Set<E> explicitStaticPropsInEnum) | |
| addGroovyObjectInterfaceAndMethods | back to summary |
|---|---|
| protected void addGroovyObjectInterfaceAndMethods(final ClassNode node, final String classInternalName) | |
| addInitialization | back to summary |
|---|---|
| protected void addInitialization(final ClassNode node) | |
| addInitialization | back to summary |
|---|---|
| protected void addInitialization(final ClassNode node, final ConstructorNode constructorNode) | |
| addMethod | back to summary |
|---|---|
| protected MethodNode addMethod(final ClassNode node, final boolean shouldBeSynthetic, final String name, final int modifiers, final ClassNode returnType, final Parameter[] parameters, final ClassNode[] exceptions, final Statement code) Helper method to add a new method to a ClassNode. Depending on the shouldBeSynthetic flag the call will either be made to ClassNode.addSyntheticMethod() or ClassNode.addMethod(). If a non-synthetic method is to be added the ACC_SYNTHETIC modifier is removed if it has been accidentally supplied. | |
| addMethod$$bridge | back to summary |
|---|---|
| protected void addMethod$$bridge(final ClassNode node, final boolean shouldBeSynthetic, final String name, final int modifiers, final ClassNode returnType, final Parameter[] parameters, final ClassNode[] exceptions, final Statement code) | |
| addPropertyMethod | back to summary |
|---|---|
| protected void addPropertyMethod(final MethodNode method) | |
| addReturnIfNeeded | back to summary |
|---|---|
| protected void addReturnIfNeeded(final MethodNode node) | |
| addStaticMetaClassField | back to summary |
|---|---|
| private void addStaticMetaClassField(final ClassNode node, final String classInternalName) | |
| addTimeStamp | back to summary |
|---|---|
| protected void addTimeStamp(final ClassNode node)
Deprecated
| |
| adjustTypesIfStaticMainMethod | back to summary |
|---|---|
| private static void adjustTypesIfStaticMainMethod(final MethodNode node) | |
| capitalize | back to summary |
|---|---|
| public static String capitalize(final String name) Capitalizes the start of the given bean property name. | |
| checkFieldDoesNotExist | back to summary |
|---|---|
| private static FieldNode checkFieldDoesNotExist(final ClassNode node, final String fieldName) | |
| checkFinalVariables | back to summary |
|---|---|
| private void checkFinalVariables(final ClassNode node) | |
| checkForDuplicateInterfaces | back to summary |
|---|---|
| private static void checkForDuplicateInterfaces(final ClassNode cn) | |
| checkForDuplicateMethods | back to summary |
|---|---|
| private static void checkForDuplicateMethods(final ClassNode cn) | |
| checkReturnInObjectInitializer | back to summary |
|---|---|
| private static void checkReturnInObjectInitializer(final List<Statement> init) | |
| cleanParameters | back to summary |
|---|---|
| private static Parameter[] cleanParameters(final Parameter[] parameters) | |
| cleanType | back to summary |
|---|---|
| private static ClassNode cleanType(final ClassNode type) | |
| createGetterBlock | back to summary |
|---|---|
| protected Statement createGetterBlock(final PropertyNode propertyNode, final FieldNode field) | |
| createSetterBlock | back to summary |
|---|---|
| protected Statement createSetterBlock(final PropertyNode propertyNode, final FieldNode field) | |
| equalParametersNormal | back to summary |
|---|---|
| private static boolean equalParametersNormal(final MethodNode m1, final MethodNode m2) | |
| equalParametersWithGenerics | back to summary |
|---|---|
| private static boolean equalParametersWithGenerics(final MethodNode m1, final MethodNode m2, final Map<String, ClassNode> genericsSpec) | |
| extractImplicitThis$0StmtFromExpression | back to summary |
|---|---|
| private static boolean extractImplicitThis$0StmtFromExpression(final List<Statement> stmts, final Statement exprStmt) | |
| extractVariableReferenceInitializers | back to summary |
|---|---|
| private static List | |
| getClassNode | back to summary |
|---|---|
| public ClassNode getClassNode() | |
| getCovariantImplementation | back to summary |
|---|---|
| private MethodNode getCovariantImplementation(final MethodNode oldMethod, final MethodNode overridingMethod, Map<String, ClassNode> genericsSpec, final boolean ignoreError) | |
| getExplicitStaticProperties | back to summary |
|---|---|
| private static Set | |
| getFinalVariablesCallback | back to summary |
|---|---|
| protected FinalVariableAnalyzer. | |
| getImplicitThis$0Stmt | back to summary |
|---|---|
| private static Statement getImplicitThis$0Stmt(final List<Statement> statements) When InnerClassVisitor adds | |
| getMetaClassField | back to summary |
|---|---|
| private static FieldNode getMetaClassField(final ClassNode node) | |
| getMethodNode | back to summary |
|---|---|
| public MethodNode getMethodNode() | |
| getTimestamp | back to summary |
|---|---|
| public static long getTimestamp(final Class<?> clazz) | |
| getTimestampFromFieldName | back to summary |
|---|---|
| public static Long getTimestampFromFieldName(final String fieldName) | |
| isArrayAssignable | back to summary |
|---|---|
| private static boolean isArrayAssignable(final ClassNode node, final ClassNode testNode) | |
| isAssignable | back to summary |
|---|---|
| private static boolean isAssignable(final ClassNode node, final ClassNode testNode) | |
| methodNeedsReplacement | back to summary |
|---|---|
| private boolean methodNeedsReplacement(final MethodNode m) | |
| moveOptimizedConstantsInitialization | back to summary |
|---|---|
| private static boolean moveOptimizedConstantsInitialization(final ClassNode node) | |
| scriptBodySignatureWithoutReturnType | back to summary |
|---|---|
| private static String scriptBodySignatureWithoutReturnType(final ClassNode cn) | |
| setClassNode | back to summary |
|---|---|
| protected void setClassNode(final ClassNode classNode) | |
| setMetaClassFieldIfNotExists | back to summary |
|---|---|
| private static FieldNode setMetaClassFieldIfNotExists(final ClassNode node, FieldNode metaClassField) | |
| sourceOf | back to summary |
|---|---|
| private static ASTNode sourceOf(final MethodNode methodNode) | |
| storeMissingCovariantMethods | back to summary |
|---|---|
| private void storeMissingCovariantMethods(final List<MethodNode> declaredMethods, final Map<String, MethodNode> methodsToAdd, final Map<String, ClassNode> genericsSpec, final List<MethodNode> methodNodeList) | |
| storeMissingCovariantMethods | back to summary |
|---|---|
| private void storeMissingCovariantMethods(final Iterable<MethodNode> methods, final MethodNode method, final Map<String, MethodNode> methodsToAdd, final Map<String, ClassNode> genericsSpec, final boolean ignoreError) | |
| transformToPrimitiveConstantIfPossible | back to summary |
|---|---|
| public static ConstantExpression transformToPrimitiveConstantIfPossible(final ConstantExpression constantExpression) When constant expressions are created, the value is always wrapped to a non primitive type. Some constant expressions are optimized to return primitive types, but not all primitives are handled. This method guarantees to return a similar constant expression but with a primitive type instead of a boxed type. Additionally, single char strings are converted to 'char' types.
| |
| visitClass | back to summary |
|---|---|
| public void visitClass(final ClassNode node) Implements org. Doc from org. Visit a ClassNode.
| |
| visitConstructor | back to summary |
|---|---|
| public void visitConstructor(final ConstructorNode node) Implements org. Doc from org. Visit a ConstructorNode.
| |
| visitField | back to summary |
|---|---|
| public void visitField(final FieldNode node) Implements org. Doc from org. Visit a FieldNode.
| |
| visitGenericType | back to summary |
|---|---|
| public void visitGenericType(final GenericsType genericsType) | |
| visitGetter | back to summary |
|---|---|
| private void visitGetter(final PropertyNode node, final Statement getterBlock, final int getterModifiers, final String getterName) | |
| visitMethod | back to summary |
|---|---|
| public void visitMethod(final MethodNode node) Implements org. Doc from org. Visit a MethodNode.
| |
| visitProperty | back to summary |
|---|---|
| public void visitProperty(final PropertyNode node) Implements org. Doc from org. Visit a PropertyNode.
| |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| call | back to summary |
|---|---|
| public void call(ArgumentListExpression arguments, Parameter[] parameters, MethodNode method) | |
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private WriterController |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | visit(final GroovyCodeVisitor visitor)
Overrides org. |
| controller | back to summary |
|---|---|
| private WriterController controller | |
| SwapInitStatement | back to summary |
|---|---|
| pack-priv SwapInitStatement() | |
| visit | back to summary |
|---|---|
| public void visit(final GroovyCodeVisitor visitor) Overrides org. Doc from org. Delegates to the visit method used for this class.
If the visitor is a ClassGenerator, then
| |
| Modifier and Type | Field and Description |
|---|---|
| private Verifier. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | visit(final MethodVisitor mv)
Implements abstract org. |
| statement | back to summary |
|---|---|
| private Verifier. | |
| SwapInitInstruction | back to summary |
|---|---|
| private SwapInitInstruction() | |
| visit | back to summary |
|---|---|
| public void visit(final MethodVisitor mv) Implements abstract org.
| |