Class DecompiledClassNode
java.lang.Object
org.codehaus.groovy.ast.ASTNode
org.codehaus.groovy.ast.AnnotatedNode
org.codehaus.groovy.ast.ClassNode
org.codehaus.groovy.ast.decompiled.DecompiledClassNode
- All Implemented Interfaces:
- GroovydocHolder<AnnotatedNode>,- NodeMetaDataHandler
A 
ClassNode kind representing the classes coming from *.class files decompiled using ASM.- See Also:
- 
Field SummaryFields inherited from class org.codehaus.groovy.ast.ClassNodeclazz, EMPTY_ARRAY, innerClasses, isPrimaryNode, lazyInitLock, SUPER, THISFields inherited from interface groovy.lang.groovydoc.GroovydocHolderDOC_COMMENT
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetAnnotations(ClassNode type) longgetDeclaredField(String name) Finds a field matching the given name in this class.getDeclaredMethods(String name) This methods returns a list of all methods of the given name defined in the current classGet the record components of record typesReturns the concrete class this classnode relates to.getUnresolvedInterfaces(boolean useRedirect) getUnresolvedSuperClass(boolean useRedirect) booleanbooleanbooleanisSealed()booleanvoidsetGenericsPlaceHolder(boolean b) voidsetRedirect(ClassNode cn) Sets this instance as proxy for the givenClassNode.voidsetUsingGenerics(boolean b) Methods inherited from class org.codehaus.groovy.ast.ClassNodeaddConstructor, addConstructor, addField, addField, addFieldFirst, addFieldFirst, addInterface, addMethod, addMethod, addMixin, addObjectInitializerStatements, addProperty, addProperty, addStaticInitializerStatements, addSyntheticMethod, addTransform, addTypeAnnotation, addTypeAnnotations, asGenericsType, declaresAnyInterfaces, declaresInterface, equals, getAbstractMethods, getAllDeclaredMethods, getAllInterfaces, getCompileUnit, getComponentType, getDeclaredConstructor, getDeclaredMethod, getDeclaredMethodsMap, getEnclosingMethod, getField, getFieldIndex, getGetterMethod, getGetterMethod, getInnerClasses, getMethod, getMethods, getMixins, getModifiers, getModule, getName, getNameWithoutPackage, getObjectInitializerStatements, getOuterClass, getOuterClasses, getOuterField, getPackage, getPackageName, getPermittedSubclasses, getPlainNodeReference, getPlainNodeReference, getProperties, getProperty, getRecordComponentNodes, getSetterMethod, getSetterMethod, getSuperClass, getText, getTransforms, getTypeAnnotations, getTypeAnnotations, getUnresolvedInterfaces, getUnresolvedName, getUnresolvedSuperClass, hasDeclaredMethod, hashCode, hasMethod, hasPackageName, hasPossibleMethod, hasPossibleStaticMethod, hasProperty, implementsAnyInterfaces, implementsInterface, isAbstract, isAnnotated, isAnnotationDefinition, isArray, isDerivedFrom, isDerivedFromGroovyObject, isEnum, isGenericsPlaceHolder, isInterface, isPrimaryClassNode, isRecord, isRedirectNode, isScript, isScriptBody, isStaticClass, isSyntheticPublic, makeArray, parametersEqual, positionStmtsAfterEnumInitStmts, redirect, removeConstructor, removeField, removeMethod, renameField, setAnnotated, setCompileUnit, setEnclosingMethod, setGenericsTypes, setInterfaces, setMixins, setModifiers, setModule, setPermittedSubclasses, setRecordComponentNodes, setRecordComponents, setScript, setScriptBody, setStaticClass, setSuperClass, setSyntheticPublic, setUnresolvedSuperClass, toString, toString, tryFindPossibleMethod, visitContentsMethods inherited from class org.codehaus.groovy.ast.AnnotatedNodeaddAnnotation, addAnnotations, getDeclaringClass, getGroovydoc, getInstance, hasNoRealSourcePosition, isSynthetic, setDeclaringClass, setHasNoRealSourcePosition, setSyntheticMethods inherited from class org.codehaus.groovy.ast.ASTNodecopyNodeMetaData, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getMetaDataMap, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setMetaDataMap, setSourcePosition, visitMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.codehaus.groovy.ast.NodeMetaDataHandlercopyNodeMetaData, getNodeMetaData, getNodeMetaData, getNodeMetaData, putNodeMetaData, removeNodeMetaData, setNodeMetaData
- 
Constructor Details- 
DecompiledClassNode
 
- 
- 
Method Details- 
getCompilationTimeStamppublic long getCompilationTimeStamp()
- 
getGenericsTypes- Overrides:
- getGenericsTypesin class- ClassNode
 
- 
isUsingGenericspublic boolean isUsingGenerics()- Overrides:
- isUsingGenericsin class- ClassNode
 
- 
getFields
- 
getInterfaces- Overrides:
- getInterfacesin class- ClassNode
- Returns:
- the interfaces implemented by this ClassNode
 
- 
getMethods- Overrides:
- getMethodsin class- ClassNode
- Returns:
- the methods associated with this ClassNode
 
- 
getDeclaredConstructors- Overrides:
- getDeclaredConstructorsin class- ClassNode
 
- 
getDeclaredFieldDescription copied from class:ClassNodeFinds a field matching the given name in this class.- Overrides:
- getDeclaredFieldin class- ClassNode
- Parameters:
- name- the name of the field of interest
- Returns:
- the method matching the given name and parameters or null
 
- 
getDeclaredMethodsDescription copied from class:ClassNodeThis methods returns a list of all methods of the given name defined in the current class- Overrides:
- getDeclaredMethodsin class- ClassNode
- Returns:
- the method list
- See Also:
 
- 
getUnresolvedSuperClass- Overrides:
- getUnresolvedSuperClassin class- ClassNode
 
- 
getUnresolvedInterfaces- Overrides:
- getUnresolvedInterfacesin class- ClassNode
 
- 
getAnnotations- Overrides:
- getAnnotationsin class- ClassNode
 
- 
getAnnotations- Overrides:
- getAnnotationsin class- ClassNode
 
- 
setRedirectDescription copied from class:ClassNodeSets this instance as proxy for the givenClassNode.- Overrides:
- setRedirectin class- ClassNode
- Parameters:
- cn- the class to redirect to; if- nullthe redirect is removed
 
- 
setGenericsPlaceHolderpublic void setGenericsPlaceHolder(boolean b) - Overrides:
- setGenericsPlaceHolderin class- ClassNode
 
- 
setUsingGenericspublic void setUsingGenerics(boolean b) - Overrides:
- setUsingGenericsin class- ClassNode
 
- 
setName
- 
isParameterizedpublic boolean isParameterized()
- 
isResolvedpublic boolean isResolved()- Overrides:
- isResolvedin class- ClassNode
 
- 
isSealedpublic boolean isSealed()
- 
getRecordComponentsGet the record components of record types- Overrides:
- getRecordComponentsin class- ClassNode
- Returns:
- RecordComponentNodeinstances
- Since:
- 4.0.0
 
- 
getTypeClassDescription copied from class:ClassNodeReturns the concrete class this classnode relates to. However, this method is inherently unsafe as it may return null depending on the compile phase you are using. AST transformations should never use this method directly, but rather obtain a new class node usingClassNode.getPlainNodeReference().- Overrides:
- getTypeClassin class- ClassNode
- Returns:
- the class this classnode relates to. May return null.
 
 
-