Class InnerClassNode

All Implemented Interfaces:
GroovydocHolder<AnnotatedNode>, NodeMetaDataHandler
Direct Known Subclasses:
EnumConstantClassNode, InterfaceHelperClassNode

public class InnerClassNode extends ClassNode
Represents an inner class definition.
  • Constructor Details

    • InnerClassNode

      public InnerClassNode(ClassNode outerClass, String name, int modifiers, ClassNode superClass)
      Parameters:
      name - is the full name of the class
      modifiers - the modifiers, @see org.objectweb.asm.Opcodes
      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)
      Parameters:
      name - is the full name of the class
      modifiers - the modifiers, @see org.objectweb.asm.Opcodes
      superClass - the base class name - use "java.lang.Object" if no direct base class
  • Method Details

    • getOuterClass

      public ClassNode getOuterClass()
      Overrides:
      getOuterClass in class ClassNode
    • getOuterMostClass

      public ClassNode getOuterMostClass()
    • getOuterField

      public FieldNode getOuterField(String name)
      Overrides:
      getOuterField in class ClassNode
      Returns:
      the field on the outer class or null if this is not an inner class
    • getVariableScope

      public VariableScope getVariableScope()
    • setVariableScope

      public void setVariableScope(VariableScope scope)
    • isAnonymous

      public boolean isAnonymous()
    • setAnonymous

      public void setAnonymous(boolean anonymous)