Package gnu.bytecode

Class Field

    • Constructor Detail

      • Field

        public Field​(ClassType ctype)
        Add a new Field to a ClassType.
    • Method Detail

      • setStaticFlag

        public final void setStaticFlag​(boolean is_static)
      • getStaticFlag

        public final boolean getStaticFlag()
        Specified by:
        getStaticFlag in interface Member
      • getFlags

        public final int getFlags()
      • getModifiers

        public final int getModifiers()
        Specified by:
        getModifiers in interface Member
      • setModifiers

        public final void setModifiers​(int modifiers)
      • setSourceName

        public void setSourceName​(String name)
      • getSourceName

        public String getSourceName()
      • searchField

        public static Field searchField​(Field fields,
                                        String name)
        Find a field with the given name.
        Parameters:
        fields - list of fields to search
        name - (interned source) name of field to look for
      • getNext

        public final Field getNext()
      • setConstantValue

        public final void setConstantValue​(Object value,
                                           ClassType ctype)
        Set the ConstantValue attribute for this field.
        Parameters:
        value - the value to use for the ConstantValue attribute of this field
        ctype - the class that contains this field This field's type is used to determine the kind of constant.
      • hasConstantValueAttr

        public boolean hasConstantValueAttr()