Documentation of 'org.apache.bcel.generic.FieldGenOrMethodGen' Java class
FieldGenOrMethodGen
org.apache.bcel.generic

Class FieldGenOrMethodGen

  • All Implemented Interfaces:
    java.lang.Cloneable, NamedAndTyped
    Direct Known Subclasses:
    FieldGen, MethodGen


    public abstract class FieldGenOrMethodGen
    extends AccessFlags
    implements NamedAndTyped, java.lang.Cloneable
    Super class for FieldGen and MethodGen objects, since they have some methods in common!
    • Method Detail

      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface NamedAndTyped
        Returns:
        name of method/field.
      • setName

        public void setName(java.lang.String name)
        Specified by:
        setName in interface NamedAndTyped
      • addAttribute

        public void addAttribute(Attribute a)
        Add an attribute to this method. Currently, the JVM knows about the `Code', `ConstantValue', `Synthetic' and `Exceptions' attributes. Other attributes will be ignored by the JVM but do no harm.
        Parameters:
        a - attribute to be added
      • removeAttribute

        public void removeAttribute(Attribute a)
        Remove an attribute.
      • removeAnnotationEntry

        public void removeAnnotationEntry(AnnotationEntryGen ag)
        Since:
        6.0
      • removeAttributes

        public void removeAttributes()
        Remove all attributes.
      • removeAnnotationEntries

        public void removeAnnotationEntries()
        Since:
        6.0
      • getAttributes

        public Attribute[] getAttributes()
        Returns:
        all attributes of this method.
      • getSignature

        public abstract java.lang.String getSignature()
        Returns:
        signature of method/field.
      • clone

        public java.lang.Object clone()
        Overrides:
        clone in class java.lang.Object

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.