RECODER 0.92

recoder.bytecode
Class FieldInfo

java.lang.Object
  extended by recoder.bytecode.ByteCodeElement
      extended by recoder.bytecode.MemberInfo
          extended by recoder.bytecode.FieldInfo
All Implemented Interfaces:
Field, Member, ProgramModelElement, Variable, AccessFlags, ModelElement, NamedModelElement
Direct Known Subclasses:
EnumConstantInfo

public class FieldInfo
extends MemberInfo
implements Field


Nested Class Summary
 
Nested classes/interfaces inherited from interface recoder.abstraction.ProgramModelElement
ProgramModelElement.LexicalOrder
 
Nested classes/interfaces inherited from interface recoder.abstraction.ProgramModelElement
ProgramModelElement.LexicalOrder
 
Field Summary
protected  java.lang.String constantValue
           
protected  java.lang.String type
           
protected  java.util.List<TypeArgumentInfo> typeArgs
           
 
Fields inherited from class recoder.bytecode.MemberInfo
parent
 
Fields inherited from class recoder.bytecode.ByteCodeElement
accessFlags, service
 
Fields inherited from interface recoder.abstraction.ProgramModelElement
LEXICAL_ORDER
 
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.abstraction.ProgramModelElement
LEXICAL_ORDER
 
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)
           
 
Method Summary
 java.lang.String getBinaryName()
          Returns the binary name.
 java.lang.String getConstantValue()
           
 java.lang.String getFullName()
          Returns the maximal expanded name including all applicable qualifiers.
 Type getType()
          Returns the type of this variable.
 java.util.List<TypeArgumentInfo> getTypeArguments()
           
 java.lang.String getTypeName()
           
 
Methods inherited from class recoder.bytecode.MemberInfo
getAnnotations, getContainingClassType, getParent, setParent
 
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
 
Methods inherited from interface recoder.abstraction.Variable
isFinal
 
Methods inherited from interface recoder.abstraction.ProgramModelElement
getProgramModelInfo, setProgramModelInfo
 
Methods inherited from interface recoder.NamedModelElement
getName
 
Methods inherited from interface recoder.ModelElement
validate
 
Methods inherited from interface recoder.abstraction.Member
getAnnotations, getContainingClassType, isFinal, isPrivate, isProtected, isPublic, isStatic, isStrictFp
 
Methods inherited from interface recoder.abstraction.ProgramModelElement
getProgramModelInfo, setProgramModelInfo
 
Methods inherited from interface recoder.NamedModelElement
getName
 
Methods inherited from interface recoder.ModelElement
validate
 

Field Detail

type

protected java.lang.String type

constantValue

protected java.lang.String constantValue

typeArgs

protected java.util.List<TypeArgumentInfo> typeArgs
Constructor Detail

FieldInfo

public FieldInfo(int accessFlags,
                 java.lang.String name,
                 java.lang.String type,
                 ClassFile cf,
                 java.lang.String constantValue,
                 java.util.List<TypeArgumentInfo> typeArgs)
Method Detail

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

RECODER 0.92