Class FieldOrMethod
java.lang.Object
org.aspectj.apache.bcel.classfile.Modifiers
org.aspectj.apache.bcel.classfile.FieldOrMethod
- All Implemented Interfaces:
Node
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Attribute[]protected ConstantPoolprotected intprotected int -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedFieldOrMethod(int accessFlags, int nameIndex, int signatureIndex, Attribute[] attributes, ConstantPool cpool) protectedFieldOrMethod(DataInputStream file, ConstantPool cpool) protectedInitialize from another object. -
Method Summary
Modifier and TypeMethodDescriptionfinal voiddump(DataOutputStream file) final Attribute[]final ConstantPoolfinal StringThis will return the contents of a signature attribute attached to a member, or if there is none it will return the same as 'getSignature()'.final StringHunts for a signature attribute on the member and returns its contents.final StringgetName()final intfinal Stringfinal intvoidsetAttributes(Attribute[] attributes) Methods inherited from class Modifiers
getModifiers, isAbstract, isBridge, isFinal, isInterface, isNative, isPrivate, isProtected, isPublic, isStatic, isStrictfp, isSynchronized, isTransient, isVarargs, isVolatile, setModifiersModifier and TypeMethodDescriptionfinal intfinal booleanfinal booleanisBridge()final booleanisFinal()final booleanfinal booleanisNative()final booleanfinal booleanfinal booleanisPublic()final booleanisStatic()final booleanfinal booleanfinal booleanfinal booleanfinal booleanfinal voidsetModifiers(int modifiers) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
nameIndex
protected int nameIndex -
signatureIndex
protected int signatureIndex -
attributes
-
cpool
-
-
Constructor Details
-
FieldOrMethod
protected FieldOrMethod() -
FieldOrMethod
Initialize from another object. Note that both objects use the same references (shallow copy). Use clone() for a physical copy. -
FieldOrMethod
- Throws:
IOException
-
FieldOrMethod
protected FieldOrMethod(int accessFlags, int nameIndex, int signatureIndex, Attribute[] attributes, ConstantPool cpool)
-
-
Method Details
-
setAttributes
- Parameters:
attributes- Collection of object attributes.
-
dump
- Throws:
IOException
-
getAttributes
-
getConstantPool
-
getNameIndex
public final int getNameIndex() -
getSignatureIndex
public final int getSignatureIndex() -
getName
-
getSignature
-
getDeclaredSignature
This will return the contents of a signature attribute attached to a member, or if there is none it will return the same as 'getSignature()'. Signature attributes are attached to members that were declared generic. -
getAnnotations
-
getGenericSignature
Hunts for a signature attribute on the member and returns its contents. So where the 'regular' signature may be (Ljava/util/Vector;)V the signature attribute may in fact say 'Ljava/lang/Vectorinvalid input: '<'Ljava/lang/String>;' Coded for performance - searches for the attribute only when requested - only searches for it once.
-