Package com.ibm.wala.classLoader
Class FieldImpl
- java.lang.Object
-
- com.ibm.wala.classLoader.FieldImpl
-
- All Implemented Interfaces:
IField
,IMember
,IClassHierarchyDweller
public final class FieldImpl extends Object implements IField
Implementation of a canonical field reference. TODO: canonicalize these? TODO: don't cache fieldType here .. move to class?
-
-
Constructor Summary
Constructors Constructor Description FieldImpl(IClass declaringClass, FieldReference canonicalRef, int accessFlags, Collection<Annotation> annotations)
FieldImpl(IClass declaringClass, FieldReference canonicalRef, int accessFlags, Collection<Annotation> annotations, TypeSignature sig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
Collection<Annotation>
getAnnotations()
Get the annotations on this member, if anyIClassHierarchy
getClassHierarchy()
IClass
getDeclaringClass()
Return the object that represents the declaring class for this member.TypeReference
getFieldTypeReference()
TypeSignature
getGenericSignature()
Atom
getName()
FieldReference
getReference()
int
hashCode()
boolean
isFinal()
Is this field final?boolean
isPrivate()
boolean
isProtected()
boolean
isPublic()
boolean
isStatic()
Is this member static?boolean
isVolatile()
Is this member volatile?String
toString()
-
-
-
Constructor Detail
-
FieldImpl
public FieldImpl(IClass declaringClass, FieldReference canonicalRef, int accessFlags, Collection<Annotation> annotations, TypeSignature sig)
-
FieldImpl
public FieldImpl(IClass declaringClass, FieldReference canonicalRef, int accessFlags, Collection<Annotation> annotations)
-
-
Method Detail
-
getGenericSignature
public TypeSignature getGenericSignature()
- Returns:
- the genericSignature
-
getDeclaringClass
public IClass getDeclaringClass()
Description copied from interface:IMember
Return the object that represents the declaring class for this member.- Specified by:
getDeclaringClass
in interfaceIMember
- Returns:
- the object that represents the declaring class for this member.
-
getReference
public FieldReference getReference()
- Specified by:
getReference
in interfaceIField
- Returns:
- canonical FieldReference representing this field
-
getName
public Atom getName()
-
getFieldTypeReference
public TypeReference getFieldTypeReference()
- Specified by:
getFieldTypeReference
in interfaceIField
- Returns:
- the canonical TypeReference of the declared type of the field
-
isStatic
public boolean isStatic()
Description copied from interface:IMember
Is this member static?
-
isFinal
public boolean isFinal()
Description copied from interface:IField
Is this field final?
-
isProtected
public boolean isProtected()
- Specified by:
isProtected
in interfaceIField
-
isVolatile
public boolean isVolatile()
Description copied from interface:IField
Is this member volatile?- Specified by:
isVolatile
in interfaceIField
-
getClassHierarchy
public IClassHierarchy getClassHierarchy()
- Specified by:
getClassHierarchy
in interfaceIClassHierarchyDweller
-
getAnnotations
public Collection<Annotation> getAnnotations()
Description copied from interface:IMember
Get the annotations on this member, if any- Specified by:
getAnnotations
in interfaceIMember
-
-