Package com.ibm.wala.demandpa.util
Class ArrayContents
- java.lang.Object
-
- com.ibm.wala.demandpa.util.ArrayContents
-
- All Implemented Interfaces:
IField
,IMember
,IClassHierarchyDweller
public class ArrayContents extends Object implements IField
Pseudo-field modelling the contents of an array of reference type. Only for convenience; many of the methods don't actually work. Also, a singleton.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<Annotation>
getAnnotations()
Get the annotations on this member, if anyClassHierarchy
getClassHierarchy()
IClass
getDeclaringClass()
Return the object that represents the declaring class for this member.TypeReference
getFieldTypeReference()
Atom
getName()
FieldReference
getReference()
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()
static ArrayContents
v()
-
-
-
Method Detail
-
v
public static final ArrayContents v()
-
getFieldTypeReference
public TypeReference getFieldTypeReference() throws UnimplementedError
- Specified by:
getFieldTypeReference
in interfaceIField
- Returns:
- the canonical TypeReference of the declared type of the field
- Throws:
UnimplementedError
-
isFinal
public boolean isFinal() throws UnimplementedError
Description copied from interface:IField
Is this field final?- Specified by:
isFinal
in interfaceIField
- Throws:
UnimplementedError
-
isPrivate
public boolean isPrivate() throws UnimplementedError
- Specified by:
isPrivate
in interfaceIField
- Throws:
UnimplementedError
-
isProtected
public boolean isProtected() throws UnimplementedError
- Specified by:
isProtected
in interfaceIField
- Throws:
UnimplementedError
-
isPublic
public boolean isPublic() throws UnimplementedError
- Specified by:
isPublic
in interfaceIField
- Throws:
UnimplementedError
-
isStatic
public boolean isStatic() throws UnimplementedError
Description copied from interface:IMember
Is this member static?- Specified by:
isStatic
in interfaceIField
- Specified by:
isStatic
in interfaceIMember
- Throws:
UnimplementedError
-
getDeclaringClass
public IClass getDeclaringClass() throws UnsupportedOperationException
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.
- Throws:
UnsupportedOperationException
-
getName
public Atom getName() throws UnimplementedError
- Specified by:
getName
in interfaceIMember
- Returns:
- the name of this member
- Throws:
UnimplementedError
-
isVolatile
public boolean isVolatile()
Description copied from interface:IField
Is this member volatile?- Specified by:
isVolatile
in interfaceIField
-
getClassHierarchy
public ClassHierarchy getClassHierarchy() throws UnimplementedError
- Specified by:
getClassHierarchy
in interfaceIClassHierarchyDweller
- Throws:
UnimplementedError
-
getReference
public FieldReference getReference()
- Specified by:
getReference
in interfaceIField
- Returns:
- canonical FieldReference representing this field
-
getAnnotations
public Collection<Annotation> getAnnotations()
Description copied from interface:IMember
Get the annotations on this member, if any- Specified by:
getAnnotations
in interfaceIMember
-
-