|
RECODER 0.92 | |||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectrecoder.abstraction.ArrayType
public final class ArrayType
A program model element representing array types.
| Nested Class Summary | |
|---|---|
class |
ArrayType.ArrayCloneMethod
|
class |
ArrayType.ArrayLengthField
|
| Nested classes/interfaces inherited from interface recoder.abstraction.ProgramModelElement |
|---|
ProgramModelElement.LexicalOrder |
| Nested classes/interfaces inherited from interface recoder.abstraction.ProgramModelElement |
|---|
ProgramModelElement.LexicalOrder |
| Nested classes/interfaces inherited from interface recoder.abstraction.ProgramModelElement |
|---|
ProgramModelElement.LexicalOrder |
| Field Summary |
|---|
| 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 |
| 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 | |
|---|---|
ArrayType(Type basetype,
ImplicitElementInfo pmi)
Creates a new array type for the given base type, organized by the given program model info. |
|
| Method Summary | |
|---|---|
ArrayType |
createArrayType()
|
boolean |
equals(java.lang.Object o2)
|
java.util.List<Field> |
getAllFields()
Returns all visible fields that are defined in this class type or any of its supertypes. |
java.util.List<Method> |
getAllMethods()
Returns all visible methods that are defined in this class type or any of its supertypes. |
java.util.List<ClassType> |
getAllSupertypes()
Returns the list of all supertypes of this class type, in topological order, including the class type itself as first element. |
java.util.List<ClassType> |
getAllTypes()
Returns all class types that are inner types of this class type, including visible inherited types. |
java.util.List<? extends AnnotationUse> |
getAnnotations()
Returns a list of Annotations. |
ArrayType.ArrayCloneMethod |
getArrayCloneMethod()
|
ArrayType.ArrayLengthField |
getArrayLengthField()
|
ArrayType |
getArrayType()
|
Type |
getBaseType()
Returns the base type of this array type. |
java.lang.String |
getBinaryName()
Returns the binary name. |
java.util.List<? extends Constructor> |
getConstructors()
Returns the constructors locally defined within this class type. |
ClassTypeContainer |
getContainer()
Returns the enclosing package or class type, or method. |
ClassType |
getContainingClassType()
Returns the logical parent type of this member. |
ErasedType |
getErasedType()
|
java.util.List<? extends Field> |
getFields()
Returns the fields locally defined within this class type. |
java.lang.String |
getFullName()
Returns the maximal expanded name including all applicable qualifiers. |
java.lang.String |
getFullSignature()
Returns a full type signature of this type, i.e., the full name plus possible type arguments. |
java.util.List<Method> |
getMethods()
Returns the methods locally defined within this class type. |
java.lang.String |
getName()
Returns the name of this array type. |
Package |
getPackage()
Returns the package this element is defined in. |
ProgramModelInfo |
getProgramModelInfo()
Returns the instance that can retrieve information about this program model element. |
java.util.List<ClassType> |
getSupertypes()
Returns the list of locally declared supertypes of this class type. |
java.util.List<? extends TypeParameter> |
getTypeParameters()
Returns the type parameters of this class type. |
java.util.List<? extends ClassType> |
getTypes()
Returns the class types locally defined within this container. |
int |
hashCode()
|
boolean |
isAbstract()
Checks if this member is abstract. |
boolean |
isAnnotationType()
Checks if this class type denotes an annotation type |
boolean |
isEnumType()
Checks if this class type denotes an enum type |
boolean |
isFinal()
Checks if this member is final. |
boolean |
isInner()
Checks if this type is an inner class, as described in JLS, 3rd edition, §8.1.3 |
boolean |
isInterface()
Checks if this class type denotes an interface (i.e. ordinary interface or annotation type). |
boolean |
isOrdinaryClass()
Checks if this class type denotes an ordinary (i.e. not an enum) class. |
boolean |
isOrdinaryInterface()
Checks if this class type denotes an ordinary (i.e. not annotation type) interface. |
boolean |
isPrivate()
Checks if this member is private. |
boolean |
isProtected()
Checks if this member is protected. |
boolean |
isPublic()
Checks if this member is public. |
boolean |
isStatic()
Checks if this member is static. |
boolean |
isStrictFp()
Checks if this member is strictfp. |
void |
setProgramModelInfo(ProgramModelInfo service)
Sets the instance that can retrieve information about this program model element. |
java.lang.String |
toString()
|
void |
validate()
Check consistency and admissibility of a construct, e.g. cardinality of participants. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ArrayType(Type basetype,
ImplicitElementInfo pmi)
basetype - the base type of the array.pmi - the program model info responsible for this type.| Method Detail |
|---|
public ArrayType getArrayType()
getArrayType in interface Typepublic ArrayType createArrayType()
createArrayType in interface Typepublic ArrayType.ArrayLengthField getArrayLengthField()
public ArrayType.ArrayCloneMethod getArrayCloneMethod()
public Type getBaseType()
public java.lang.String getName()
getName in interface NamedModelElementpublic java.lang.String getFullName()
getFullName in interface ProgramModelElementpublic java.lang.String getBinaryName()
ProgramModelElement
getBinaryName in interface ProgramModelElementpublic ProgramModelInfo getProgramModelInfo()
getProgramModelInfo in interface ProgramModelElementpublic void setProgramModelInfo(ProgramModelInfo service)
setProgramModelInfo in interface ProgramModelElementservice - the program model info for this element.public void validate()
ModelElementrecoder.java.statement.If
has a boolean parameter as condition,
recoder.service.SemanticsChecker
validate in interface ModelElementSemanticsCheckerpublic boolean equals(java.lang.Object o2)
equals in class java.lang.Objectpublic java.util.List<Field> getAllFields()
ClassType
getAllFields in interface ClassTypepublic java.util.List<Method> getAllMethods()
ClassType
getAllMethods in interface ClassTypepublic java.util.List<ClassType> getAllSupertypes()
ClassType
getAllSupertypes in interface ClassTypepublic java.util.List<ClassType> getAllTypes()
ClassType
getAllTypes in interface ClassTypeClassType.getAllSupertypes()public java.util.List<? extends Constructor> getConstructors()
ClassType
getConstructors in interface ClassTypepublic java.util.List<? extends Field> getFields()
ClassType
getFields in interface ClassTypepublic java.util.List<Method> getMethods()
ClassType
getMethods in interface ClassTypepublic java.util.List<ClassType> getSupertypes()
ClassType
getSupertypes in interface ClassTypepublic java.util.List<? extends TypeParameter> getTypeParameters()
ClassType
getTypeParameters in interface ClassTypepublic boolean isAbstract()
ClassTypetrue
.
isAbstract in interface ClassTypetrue if this member is abstract, false
otherwise.ClassType.isInterface()public boolean isAnnotationType()
ClassType
isAnnotationType in interface ClassTypetrue if this object represents an annotation type,
false otherwisepublic boolean isEnumType()
ClassType
isEnumType in interface ClassTypetrue if this object represents an enum type,
false otherwisepublic boolean isInterface()
ClassType
isInterface in interface ClassTypetrue if this object represents an interface,
false otherwise.public boolean isOrdinaryClass()
ClassType
isOrdinaryClass in interface ClassTypetrue if this object represents an ordinary class type,
false otherwisepublic boolean isOrdinaryInterface()
ClassType
isOrdinaryInterface in interface ClassTypetrue if this object represents an ordinary interface,
false otherwise.public java.util.List<? extends AnnotationUse> getAnnotations()
Member
getAnnotations in interface Memberpublic ClassType getContainingClassType()
Member
getContainingClassType in interface Memberpublic boolean isFinal()
Member
isFinal in interface Membertrue if this member is final, false
otherwise.public boolean isPrivate()
Member
isPrivate in interface Membertrue if this member is private, false
otherwise.public boolean isProtected()
Member
isProtected in interface Membertrue if this member is protected, false
otherwise.public boolean isPublic()
Member
isPublic in interface Membertrue if this member is public, false
otherwise.public boolean isStatic()
Membertrue for
Constructors.
isStatic in interface Membertrue if this member is static, false
otherwise.public boolean isStrictFp()
Member
isStrictFp in interface Membertrue if this member is strictfp, false
otherwise.public ClassTypeContainer getContainer()
ClassTypeContainer
getContainer in interface ClassTypeContainerpublic Package getPackage()
ClassTypeContainer
getPackage in interface ClassTypeContainerpublic java.util.List<? extends ClassType> getTypes()
ClassTypeContainer
getTypes in interface ClassTypeContainerpublic java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String getFullSignature()
TypegetFullName() on primitive types.
getFullSignature in interface Typepublic ErasedType getErasedType()
getErasedType in interface ClassTypepublic boolean isInner()
ClassType
isInner in interface ClassType
|
RECODER 0.92 | |||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||