src/share/classes/jdk/internal/org/objectweb/asm/tree/InnerClassNode.java

Print this page




  58  */
  59 package jdk.internal.org.objectweb.asm.tree;
  60 
  61 import jdk.internal.org.objectweb.asm.ClassVisitor;
  62 
  63 /**
  64  * A node that represents an inner class.
  65  *
  66  * @author Eric Bruneton
  67  */
  68 public class InnerClassNode {
  69 
  70     /**
  71      * The internal name of an inner class (see
  72      * {@link jdk.internal.org.objectweb.asm.Type#getInternalName() getInternalName}).
  73      */
  74     public String name;
  75 
  76     /**
  77      * The internal name of the class to which the inner class belongs (see
  78      * {@link jdk.internal.org.objectweb.asm.Type#getInternalName() getInternalName}). May
  79      * be <tt>null</tt>.
  80      */
  81     public String outerName;
  82 
  83     /**
  84      * The (simple) name of the inner class inside its enclosing class. May be
  85      * <tt>null</tt> for anonymous inner classes.
  86      */
  87     public String innerName;
  88 
  89     /**
  90      * The access flags of the inner class as originally declared in the
  91      * enclosing class.
  92      */
  93     public int access;
  94 
  95     /**
  96      * Constructs a new {@link InnerClassNode}.
  97      *
  98      * @param name the internal name of an inner class (see
  99      *        {@link jdk.internal.org.objectweb.asm.Type#getInternalName() getInternalName}).
 100      * @param outerName the internal name of the class to which the inner class
 101      *        belongs (see
 102      *        {@link jdk.internal.org.objectweb.asm.Type#getInternalName() getInternalName}).
 103      *        May be <tt>null</tt>.
 104      * @param innerName the (simple) name of the inner class inside its
 105      *        enclosing class. May be <tt>null</tt> for anonymous inner
 106      *        classes.
 107      * @param access the access flags of the inner class as originally declared
 108      *        in the enclosing class.



 109      */
 110     public InnerClassNode(
 111         final String name,
 112         final String outerName,
 113         final String innerName,
 114         final int access)
 115     {
 116         this.name = name;
 117         this.outerName = outerName;
 118         this.innerName = innerName;
 119         this.access = access;
 120     }
 121 
 122     /**
 123      * Makes the given class visitor visit this inner class.
 124      *
 125      * @param cv a class visitor.

 126      */
 127     public void accept(final ClassVisitor cv) {
 128         cv.visitInnerClass(name, outerName, innerName, access);
 129     }
 130 }


  58  */
  59 package jdk.internal.org.objectweb.asm.tree;
  60 
  61 import jdk.internal.org.objectweb.asm.ClassVisitor;
  62 
  63 /**
  64  * A node that represents an inner class.
  65  *
  66  * @author Eric Bruneton
  67  */
  68 public class InnerClassNode {
  69 
  70     /**
  71      * The internal name of an inner class (see
  72      * {@link jdk.internal.org.objectweb.asm.Type#getInternalName() getInternalName}).
  73      */
  74     public String name;
  75 
  76     /**
  77      * The internal name of the class to which the inner class belongs (see
  78      * {@link jdk.internal.org.objectweb.asm.Type#getInternalName() getInternalName}). May be
  79      * <tt>null</tt>.
  80      */
  81     public String outerName;
  82 
  83     /**
  84      * The (simple) name of the inner class inside its enclosing class. May be
  85      * <tt>null</tt> for anonymous inner classes.
  86      */
  87     public String innerName;
  88 
  89     /**
  90      * The access flags of the inner class as originally declared in the
  91      * enclosing class.
  92      */
  93     public int access;
  94 
  95     /**
  96      * Constructs a new {@link InnerClassNode}.
  97      *
  98      * @param name
  99      *            the internal name of an inner class (see
 100      *            {@link jdk.internal.org.objectweb.asm.Type#getInternalName()
 101      *            getInternalName}).
 102      * @param outerName
 103      *            the internal name of the class to which the inner class
 104      *            belongs (see {@link jdk.internal.org.objectweb.asm.Type#getInternalName()
 105      *            getInternalName}). May be <tt>null</tt>.
 106      * @param innerName
 107      *            the (simple) name of the inner class inside its enclosing
 108      *            class. May be <tt>null</tt> for anonymous inner classes.
 109      * @param access
 110      *            the access flags of the inner class as originally declared in
 111      *            the enclosing class.
 112      */
 113     public InnerClassNode(final String name, final String outerName,
 114             final String innerName, final int access) {




 115         this.name = name;
 116         this.outerName = outerName;
 117         this.innerName = innerName;
 118         this.access = access;
 119     }
 120 
 121     /**
 122      * Makes the given class visitor visit this inner class.
 123      *
 124      * @param cv
 125      *            a class visitor.
 126      */
 127     public void accept(final ClassVisitor cv) {
 128         cv.visitInnerClass(name, outerName, innerName, access);
 129     }
 130 }