|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.codehaus.groovy.ast.ASTNode org.codehaus.groovy.ast.AnnotatedNode org.codehaus.groovy.ast.ClassNode org.codehaus.groovy.ast.InnerClassNode
public class InnerClassNode extends ClassNode
Represents an inner class declaration
Field Summary |
---|
Fields inherited from class ClassNode | |
---|---|
EMPTY_ARRAY, SUPER, THIS, clazz, innerClasses, isPrimaryNode, lazyInitLock |
Constructor Summary | |
InnerClassNode(ClassNode outerClass, java.lang.String name, int modifiers, ClassNode superClass)
@param name is the full name of the class |
|
InnerClassNode(ClassNode outerClass, java.lang.String name, int modifiers, ClassNode superClass, ClassNode[] interfaces, MixinNode[] mixins)
@param name is the full name of the class |
Method Summary | |
---|---|
ClassNode
|
getOuterClass()
|
FieldNode
|
getOuterField(java.lang.String name)
@return the field node on the outer class or null if this is not an inner class |
VariableScope
|
getVariableScope()
|
boolean
|
isAnonymous()
|
void
|
setAnonymous(boolean anonymous)
|
void
|
setVariableScope(VariableScope scope)
|
Methods inherited from class AnnotatedNode | |
---|---|
addAnnotation, addAnnotations, getAnnotations, getAnnotations, getDeclaringClass, hasNoRealSourcePosition, isSynthetic, setDeclaringClass, setHasNoRealSourcePosition, setSynthetic |
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Constructor Detail |
---|
public InnerClassNode(ClassNode outerClass, java.lang.String name, int modifiers, ClassNode superClass)
name
- is the full name of the classmodifiers
- the modifiers,superClass
- the base class name - use "java.lang.Object" if no direct base class
public InnerClassNode(ClassNode outerClass, java.lang.String name, int modifiers, ClassNode superClass, ClassNode[] interfaces, MixinNode[] mixins)
name
- is the full name of the classmodifiers
- the modifiers,superClass
- the base class name - use "java.lang.Object" if no direct base class
Method Detail |
---|
public ClassNode getOuterClass()
public FieldNode getOuterField(java.lang.String name)
public VariableScope getVariableScope()
public boolean isAnonymous()
public void setAnonymous(boolean anonymous)
public void setVariableScope(VariableScope scope)
Groovy Documentation