Class FieldImpl
java.lang.Object
com.ibm.wala.classLoader.FieldImpl
- All Implemented Interfaces:
IField
,IMember
,IClassHierarchyDweller
Implementation of a canonical field reference. TODO: canonicalize these? TODO: don't cache
fieldType here .. move to class?
-
Constructor Summary
ConstructorDescriptionFieldImpl
(IClass declaringClass, FieldReference canonicalRef, int accessFlags, Collection<Annotation> annotations) FieldImpl
(IClass declaringClass, FieldReference canonicalRef, int accessFlags, Collection<Annotation> annotations, TypeSignature sig) FieldImpl
(IClass declaringClass, FieldReference canonicalRef, int accessFlags, Collection<Annotation> annotations, Collection<TypeAnnotation> typeAnnotations, TypeSignature sig) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Get the annotations on this member, if anyReturn the object that represents the declaring class for this member.getName()
int
hashCode()
boolean
isFinal()
Is this field final?boolean
boolean
boolean
isPublic()
boolean
isStatic()
Is this member static?boolean
Is this member volatile?toString()
-
Constructor Details
-
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, Collection<TypeAnnotation> typeAnnotations, TypeSignature sig) -
FieldImpl
public FieldImpl(IClass declaringClass, FieldReference canonicalRef, int accessFlags, Collection<Annotation> annotations)
-
-
Method Details
-
getGenericSignature
- Returns:
- the genericSignature
-
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.
- See Also:
-
equals
-
hashCode
-
toString
-
getReference
- Specified by:
getReference
in interfaceIField
- Returns:
- canonical FieldReference representing this field
-
getName
-
getFieldTypeReference
- Specified by:
getFieldTypeReference
in interfaceIField
- Returns:
- the canonical TypeReference of the declared type of the field
-
isStatic
-
isFinal
-
isPrivate
-
isProtected
public boolean isProtected()- Specified by:
isProtected
in interfaceIField
-
isPublic
-
isVolatile
public boolean isVolatile()Description copied from interface:IField
Is this member volatile?- Specified by:
isVolatile
in interfaceIField
-
getClassHierarchy
- Specified by:
getClassHierarchy
in interfaceIClassHierarchyDweller
-
getAnnotations
Description copied from interface:IMember
Get the annotations on this member, if any- Specified by:
getAnnotations
in interfaceIMember
-
getTypeAnnotations
-