| java.lang.Object org.codehaus.groovy.ast.ASTNode org.codehaus.groovy.ast.AnnotatedNode org.codehaus.groovy.ast.ClassNode org.codehaus.groovy.ast.InnerClassNode
InnerClassNode | public class InnerClassNode extends ClassNode (Code) | | Represents an inner class declaration
author: James Strachan version: $Revision: 3104 $ |
InnerClassNode | public InnerClassNode(ClassNode outerClass, String name, int modifiers, ClassNode superClass)(Code) | | Parameters: name - is the full name of the class Parameters: modifiers - the modifiers, @see org.objectweb.asm.Opcodes Parameters: superClass - the base class name - use "java.lang.Object" if no direct base class |
InnerClassNode | public InnerClassNode(ClassNode outerClass, String name, int modifiers, ClassNode superClass, ClassNode[] interfaces, MixinNode[] mixins)(Code) | | Parameters: name - is the full name of the class Parameters: modifiers - the modifiers, @see org.objectweb.asm.Opcodes Parameters: superClass - the base class name - use "java.lang.Object" if no direct base class |
getOuterField | public FieldNode getOuterField(String name)(Code) | | the field node on the outer class or null if this is not an inner class |
Methods inherited from org.codehaus.groovy.ast.ClassNode | public void addConstructor(ConstructorNode node)(Code)(Java Doc) public ConstructorNode addConstructor(int modifiers, Parameter[] parameters, ClassNode[] exceptions, Statement code)(Code)(Java Doc) public void addField(FieldNode node)(Code)(Java Doc) public FieldNode addField(String name, int modifiers, ClassNode type, Expression initialValue)(Code)(Java Doc) public void addInterface(ClassNode type)(Code)(Java Doc) public void addMethod(MethodNode node)(Code)(Java Doc) public MethodNode addMethod(String name, int modifiers, ClassNode returnType, Parameter[] parameters, ClassNode[] exceptions, Statement code)(Code)(Java Doc) public void addMixin(MixinNode mixin)(Code)(Java Doc) public void addObjectInitializerStatements(Statement statements)(Code)(Java Doc) public void addProperty(PropertyNode node)(Code)(Java Doc) public PropertyNode addProperty(String name, int modifiers, ClassNode type, Expression initialValueExpression, Statement getterBlock, Statement setterBlock)(Code)(Java Doc) public void addStaticInitializerStatements(List staticStatements, boolean fieldInit)(Code)(Java Doc) public MethodNode addSyntheticMethod(String name, int modifiers, ClassNode returnType, Parameter[] parameters, ClassNode[] exceptions, Statement code)(Code)(Java Doc) protected MethodNode createMethodNode(Method method)(Code)(Java Doc) protected Parameter createParameter(Class parameterType, int idx)(Code)(Java Doc) protected Parameter[] createParameters(Class[] types)(Code)(Java Doc) public boolean declaresInterface(String name)(Code)(Java Doc) public boolean equals(Object o)(Code)(Java Doc) public List getAbstractMethods()(Code)(Java Doc) public List getAllDeclaredMethods()(Code)(Java Doc) public CompileUnit getCompileUnit()(Code)(Java Doc) public ClassNode getComponentType()(Code)(Java Doc) public List getDeclaredConstructors()(Code)(Java Doc) public MethodNode getDeclaredMethod(String name, Parameter[] parameters)(Code)(Java Doc) public List getDeclaredMethods(String name)(Code)(Java Doc) protected Map getDeclaredMethodsMap()(Code)(Java Doc) public MethodNode getEnclosingMethod()(Code)(Java Doc) public FieldNode getField(String name)(Code)(Java Doc) public List getFields()(Code)(Java Doc) public MethodNode getGetterMethod(String getterName)(Code)(Java Doc) public ClassNode[] getInterfaces()(Code)(Java Doc) public List getMethods()(Code)(Java Doc) public List getMethods(String name)(Code)(Java Doc) public MixinNode[] getMixins()(Code)(Java Doc) public int getModifiers()(Code)(Java Doc) public ModuleNode getModule()(Code)(Java Doc) public String getName()(Code)(Java Doc) public String getNameWithoutPackage()(Code)(Java Doc) public List getObjectInitializerStatements()(Code)(Java Doc) public ClassNode getOuterClass()(Code)(Java Doc) public FieldNode getOuterField(String name)(Code)(Java Doc) public String getPackageName()(Code)(Java Doc) public List getProperties()(Code)(Java Doc) public MethodNode getSetterMethod(String getterName)(Code)(Java Doc) public ClassNode getSuperClass()(Code)(Java Doc) public Class getTypeClass()(Code)(Java Doc) public ClassNode getUnresolvedSuperClass()(Code)(Java Doc) public boolean hasPackageName()(Code)(Java Doc) public boolean hasPossibleMethod(String name, Expression arguments)(Code)(Java Doc) public boolean implementsInterface(String name)(Code)(Java Doc) public boolean isArray()(Code)(Java Doc) public boolean isDerivedFrom(ClassNode type)(Code)(Java Doc) public boolean isDerivedFromGroovyObject()(Code)(Java Doc) public boolean isInterface()(Code)(Java Doc) public boolean isPrimaryClassNode()(Code)(Java Doc) public boolean isResolved()(Code)(Java Doc) public boolean isScript()(Code)(Java Doc) public boolean isScriptBody()(Code)(Java Doc) public boolean isStaticClass()(Code)(Java Doc) public ClassNode makeArray()(Code)(Java Doc) protected boolean parametersEqual(Parameter[] a, Parameter[] b)(Code)(Java Doc) protected ClassNode redirect()(Code)(Java Doc) protected void setCompileUnit(CompileUnit cu)(Code)(Java Doc) public void setEnclosingMethod(MethodNode enclosingMethod)(Code)(Java Doc) public void setModule(ModuleNode module)(Code)(Java Doc) public String setName(String name)(Code)(Java Doc) public void setRedirect(ClassNode cn)(Code)(Java Doc) public void setScript(boolean script)(Code)(Java Doc) public void setScriptBody(boolean scriptBody)(Code)(Java Doc) public void setStaticClass(boolean staticClass)(Code)(Java Doc) public void setSuperClass(ClassNode superClass)(Code)(Java Doc) public String toString()(Code)(Java Doc) public void visitContents(GroovyClassVisitor visitor)(Code)(Java Doc)
|
|
|