recoder.bytecode
Class FieldInfo
java.lang.Object
recoder.bytecode.ByteCodeElement
recoder.bytecode.MemberInfo
recoder.bytecode.FieldInfo
- All Implemented Interfaces:
- Field, Member, ProgramModelElement, Variable, AccessFlags, ModelElement, NamedModelElement
- Direct Known Subclasses:
- EnumConstantInfo
public class FieldInfo
- extends MemberInfo
- implements Field
| Fields inherited from interface recoder.bytecode.AccessFlags |
ABSTRACT, ANNOTATION, BRIDGE, ENUM, FINAL, INTERFACE, NATIVE, PRIVATE, PROTECTED, PUBLIC, STATIC, STRICT, SUPER, SYNCHRONIZED, SYNTHETIC, TRANSIENT, VARARGS, VOLATILE |
| Fields inherited from interface recoder.bytecode.AccessFlags |
ABSTRACT, ANNOTATION, BRIDGE, ENUM, FINAL, INTERFACE, NATIVE, PRIVATE, PROTECTED, PUBLIC, STATIC, STRICT, SUPER, SYNCHRONIZED, SYNTHETIC, TRANSIENT, VARARGS, VOLATILE |
|
Constructor Summary |
FieldInfo(int accessFlags,
java.lang.String name,
java.lang.String type,
ClassFile cf,
java.lang.String constantValue,
java.util.List<TypeArgumentInfo> typeArgs)
|
| Methods inherited from class recoder.bytecode.ByteCodeElement |
getAccessFlags, getName, getProgramModelInfo, isAbstract, isFinal, isNative, isPrivate, isProtected, isPublic, isStatic, isStrictFp, isSynchronized, setAccessFlags, setProgramModelInfo, validate |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
type
protected java.lang.String type
constantValue
protected java.lang.String constantValue
typeArgs
protected java.util.List<TypeArgumentInfo> typeArgs
FieldInfo
public FieldInfo(int accessFlags,
java.lang.String name,
java.lang.String type,
ClassFile cf,
java.lang.String constantValue,
java.util.List<TypeArgumentInfo> typeArgs)
getTypeName
public final java.lang.String getTypeName()
- Specified by:
getTypeName in class ByteCodeElement
getConstantValue
public final java.lang.String getConstantValue()
getType
public Type getType()
- Description copied from interface:
Variable
- Returns the type of this variable.
- Specified by:
getType in interface Variable
- Returns:
- the type of this variable.
getFullName
public java.lang.String getFullName()
- Description copied from interface:
ProgramModelElement
- Returns the maximal expanded name including all applicable qualifiers.
- Specified by:
getFullName in interface ProgramModelElement
- Returns:
- the full name of this program model element.
getBinaryName
public java.lang.String getBinaryName()
- Description copied from interface:
ProgramModelElement
- Returns the binary name. The binary name
is the name this program model element would have in bytecode, i.e.,
how it either is read by the bytecode parser, or the name a compiler
would give this element during the compilation process (if this program
model element is represented in source code).
See JLS, §13.1
- Specified by:
getBinaryName in interface ProgramModelElement
- Returns:
- the bytecode name of this program model element
getTypeArguments
public java.util.List<TypeArgumentInfo> getTypeArguments()
- Specified by:
getTypeArguments in interface Field