|
Groovy 1.7.8 | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.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 | |
|---|---|
ClassNode
|
getOuterClass()
|
FieldNode
|
getOuterField(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 ASTNode | |
|---|---|
| copyNodeMetaData, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getNodeMetaData, getText, removeNodeMetaData, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setNodeMetaData, setSourcePosition, visit |
| 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 |
|---|
public ClassNode getOuterClass()
public FieldNode getOuterField(String name)
public VariableScope getVariableScope()
public boolean isAnonymous()
public void setAnonymous(boolean anonymous)
public void setVariableScope(VariableScope scope)
Copyright © 2003-2010 The Codehaus. All rights reserved.