1 46 package org.codehaus.groovy.ast; 47 48 54 public class InnerClassNode extends ClassNode { 55 56 private ClassNode outerClass; 57 58 63 public InnerClassNode(ClassNode outerClass, String name, int modifiers, String superClass) { 64 this(outerClass, name, modifiers, superClass, EMPTY_STRING_ARRAY, MixinNode.EMPTY_ARRAY); 65 } 66 67 72 public InnerClassNode(ClassNode outerClass, String name, int modifiers, String superClass, String [] interfaces, MixinNode[] mixins) { 73 super(name, modifiers, superClass, interfaces, mixins); 74 this.outerClass = outerClass; 75 } 76 77 public ClassNode getOuterClass() { 78 return outerClass; 79 } 80 81 84 public FieldNode getOuterField(String name) { 85 return outerClass.getField(name); 86 } 87 } 88 | Popular Tags |