Class LocalVariableInfo

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable, Processable

    public class LocalVariableInfo
    extends SimpleProcessable
    implements java.lang.Comparable
    Representation of a local variable table entry.
    See Also:
    Serialized Form
    • Field Detail

      • u2startPC

        public int u2startPC
      • u2length

        public int u2length
      • u2nameIndex

        public int u2nameIndex
      • u2descriptorIndex

        public int u2descriptorIndex
      • u2index

        public int u2index
      • referencedClass

        public Clazz referencedClass
        An extra field pointing to the referenced Clazz object. This field is typically filled out by the ClassReferenceInitializer.
    • Constructor Detail

      • LocalVariableInfo

        public LocalVariableInfo()
        Creates an uninitialized LocalVariableInfo.
      • LocalVariableInfo

        public LocalVariableInfo​(int u2startPC,
                                 int u2length,
                                 int u2nameIndex,
                                 int u2descriptorIndex,
                                 int u2index)
        Creates an initialized LocalVariableInfo.
    • Method Detail

      • getName

        public java.lang.String getName​(Clazz clazz)
        Returns the name.
      • getDescriptor

        public java.lang.String getDescriptor​(Clazz clazz)
        Returns the descriptor.
      • referencedClassAccept

        public void referencedClassAccept​(ClassVisitor classVisitor)
        Lets the referenced class accept the given visitor.
      • compareTo

        public int compareTo​(java.lang.Object object)
        Specified by:
        compareTo in interface java.lang.Comparable