Klasse FieldOrMethod
java.lang.Object
org.aspectj.apache.bcel.classfile.Modifiers
org.aspectj.apache.bcel.classfile.FieldOrMethod
- Alle implementierten Schnittstellen:
Node
Abstract super class for fields and methods.
- Version:
- $Id: FieldOrMethod.java,v 1.12 2009/09/15 19:40:12 aclement Exp $
- Autor:
- M. Dahm
-
Feldübersicht
Modifizierer und TypFeldBeschreibungprotected Attribute[]
protected ConstantPool
protected int
protected int
-
Konstruktorübersicht
ModifiziererKonstruktorBeschreibungprotected
protected
FieldOrMethod
(int accessFlags, int nameIndex, int signatureIndex, Attribute[] attributes, ConstantPool cpool) protected
FieldOrMethod
(DataInputStream file, ConstantPool cpool) protected
Initialize from another object. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungfinal void
dump
(DataOutputStream file) final Attribute[]
final ConstantPool
final String
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()'.final String
Hunts for a signature attribute on the member and returns its contents.final String
getName()
final int
final String
final int
void
setAttributes
(Attribute[] attributes) Von Klasse geerbte Methoden org.aspectj.apache.bcel.classfile.Modifiers
getModifiers, isAbstract, isBridge, isFinal, isInterface, isNative, isPrivate, isProtected, isPublic, isStatic, isStrictfp, isSynchronized, isTransient, isVarargs, isVolatile, setModifiers
-
Felddetails
-
nameIndex
protected int nameIndex -
signatureIndex
protected int signatureIndex -
attributes
-
cpool
-
-
Konstruktordetails
-
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
- Löst aus:
IOException
-
FieldOrMethod
protected FieldOrMethod(int accessFlags, int nameIndex, int signatureIndex, Attribute[] attributes, ConstantPool cpool)
-
-
Methodendetails
-
setAttributes
- Parameter:
attributes
- Collection of object attributes.
-
dump
- Löst aus:
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/VectorUngültige Eingabe: "<"Ljava/lang/String>;' Coded for performance - searches for the attribute only when requested - only searches for it once.
-