Package org.apache.bcel.generic
Class FieldGenOrMethodGen
java.lang.Object
org.apache.bcel.classfile.AccessFlags
org.apache.bcel.generic.FieldGenOrMethodGen
- All Implemented Interfaces:
Cloneable,NamedAndTyped
Super class for FieldGen and MethodGen objects, since they have some methods in common!
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ConstantPoolGenDeprecated.(since 6.0) will be made private; do not access directly, use getter/setterprotected StringDeprecated.(since 6.0) will be made private; do not access directly, use getter/setterprotected TypeDeprecated.(since 6.0) will be made private; do not access directly, use getter/setterFields inherited from class org.apache.bcel.classfile.AccessFlags
access_flags -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.bcel.classfile.AccessFlags
getAccessFlags, getModifiers, isAbstract, isAbstract, isAnnotation, isAnnotation, isEnum, isEnum, isFinal, isFinal, isInterface, isInterface, isNative, isNative, isPrivate, isPrivate, isProtected, isProtected, isPublic, isPublic, isStatic, isStatic, isStrictfp, isStrictfp, isSynchronized, isSynchronized, isSynthetic, isSynthetic, isTransient, isTransient, isVarArgs, isVarArgs, isVolatile, isVolatile, setAccessFlags, setModifiers
-
Field Details
-
name
Deprecated.(since 6.0) will be made private; do not access directly, use getter/setter -
type
Deprecated.(since 6.0) will be made private; do not access directly, use getter/setter -
cp
Deprecated.(since 6.0) will be made private; do not access directly, use getter/setter
-
-
Constructor Details
-
FieldGenOrMethodGen
protected FieldGenOrMethodGen() -
FieldGenOrMethodGen
- Since:
- 6.0
-
-
Method Details
-
addAll
-
addAnnotationEntry
- Since:
- 6.0
-
addAttribute
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
-
clone
-
getAnnotationEntries
-
getAttributes
- Returns:
- all attributes of this method.
-
getConstantPool
-
getName
- Specified by:
getNamein interfaceNamedAndTyped- Returns:
- name of method/field.
-
getSignature
- Returns:
- signature of method/field.
-
getType
- Specified by:
getTypein interfaceNamedAndTyped
-
removeAnnotationEntries
- Since:
- 6.0
-
removeAnnotationEntry
- Since:
- 6.0
-
removeAttribute
Remove an attribute. -
removeAttributes
Remove all attributes. -
setConstantPool
-
setName
- Specified by:
setNamein interfaceNamedAndTyped
-
setType
- Specified by:
setTypein interfaceNamedAndTyped
-