|
Groovy 2.2.0 | |||||||
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, String name, int modifiers, ClassNode superClass)
@param name is the full name of the class |
|
InnerClassNode(ClassNode outerClass, String name, int modifiers, ClassNode superClass, ClassNode[] interfaces, MixinNode[] mixins)
@param name is the full name of the class |
Method Summary | |
---|---|
void
|
addConstructor(ConstructorNode node)
|
ConstructorNode
|
addConstructor(int modifiers, Parameter[] parameters, ClassNode[] exceptions, Statement code)
|
ClassNode
|
getOuterClass()
|
FieldNode
|
getOuterField(String name)
@return the field node on the outer class or null if this is not an inner class |
ClassNode
|
getOuterMostClass()
|
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 Object | |
---|---|
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Constructor Detail |
---|
public InnerClassNode(ClassNode outerClass, 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, 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 |
---|
@Override public void addConstructor(ConstructorNode node)
@Override public ConstructorNode addConstructor(int modifiers, Parameter[] parameters, ClassNode[] exceptions, Statement code)
public ClassNode getOuterClass()
public FieldNode getOuterField(String name)
public ClassNode getOuterMostClass()
public VariableScope getVariableScope()
public boolean isAnonymous()
public void setAnonymous(boolean anonymous)
public void setVariableScope(VariableScope scope)
Copyright © 2003-2013 The Codehaus. All rights reserved.