|
RECODER 0.92 | |||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectrecoder.abstraction.NullType
public class NullType
A program model element representing the null type.
| 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 |
| Nested classes/interfaces inherited from interface recoder.abstraction.ProgramModelElement |
|---|
ProgramModelElement.LexicalOrder |
| Field Summary | |
|---|---|
static java.lang.String |
NULL
The name of this type. |
| 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 | |
|---|---|
NullType(ProgramModelInfo info)
Create a new null type for the given program model info. |
|
| Method Summary | |
|---|---|
ArrayType |
createArrayType()
|
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, including this type. |
java.util.List<ClassType> |
getAllTypes()
Returns all class types that are inner types of this class type. |
java.util.List<? extends AnnotationUse> |
getAnnotations()
returns null |
ArrayType |
getArrayType()
|
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 class 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 name of this element. |
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 element. |
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 (empty) list of class types locally defined within this container. |
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. |
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 info)
Sets the instance that can retrieve information about this program model element. |
void |
validate()
Check consistency and admissibility of a construct, e.g. cardinality of participants. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String NULL
| Constructor Detail |
|---|
public NullType(ProgramModelInfo info)
info - the program model info responsible for this type.| Method Detail |
|---|
public ArrayType getArrayType()
getArrayType in interface Typepublic ArrayType createArrayType()
createArrayType in interface Typepublic java.lang.String getName()
getName in interface NamedModelElement"null".public java.lang.String getFullName()
getFullName in interface ProgramModelElement"null".public java.lang.String getBinaryName()
ProgramModelElement
getBinaryName in interface ProgramModelElementpublic ProgramModelInfo getProgramModelInfo()
getProgramModelInfo in interface ProgramModelElementpublic void setProgramModelInfo(ProgramModelInfo info)
setProgramModelInfo in interface ProgramModelElementinfo - 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 isFinal()
isFinal in interface Membertrue.public boolean isStatic()
isStatic in interface Membertrue.public boolean isPrivate()
isPrivate in interface Memberfalse.public boolean isProtected()
isProtected in interface Memberfalse.public boolean isPublic()
isPublic in interface Membertrue.public boolean isStrictFp()
isStrictFp in interface Memberfalse.public java.util.List<? extends ClassType> getTypes()
getTypes in interface ClassTypeContainerpublic java.util.List<ClassType> getAllTypes()
getAllTypes in interface ClassTypeClassType.getAllSupertypes()public ClassType getContainingClassType()
getContainingClassType in interface Memberpublic ClassTypeContainer getContainer()
getContainer in interface ClassTypeContainernull.public boolean isInterface()
isInterface in interface ClassTypefalse.public boolean isOrdinaryInterface()
ClassType
isOrdinaryInterface in interface ClassTypetrue if this object represents an ordinary interface,
false otherwise.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 isOrdinaryClass()
ClassType
isOrdinaryClass in interface ClassTypetrue if this object represents an ordinary class type,
false otherwisepublic boolean isAbstract()
isAbstract in interface ClassTypefalse.ClassType.isInterface()public java.util.List<ClassType> getSupertypes()
getSupertypes in interface ClassTypepublic java.util.List<ClassType> getAllSupertypes()
getAllSupertypes in interface ClassTypepublic java.util.List<? extends Field> getFields()
getFields in interface ClassTypepublic java.util.List<Field> getAllFields()
getAllFields in interface ClassTypepublic java.util.List<Method> getMethods()
getMethods in interface ClassTypepublic java.util.List<? extends Constructor> getConstructors()
getConstructors in interface ClassTypepublic java.util.List<Method> getAllMethods()
getAllMethods in interface ClassTypepublic Package getPackage()
getPackage in interface ClassTypeContainernull.public java.util.List<? extends AnnotationUse> getAnnotations()
null
getAnnotations in interface Memberpublic java.util.List<? extends TypeParameter> getTypeParameters()
ClassType
getTypeParameters in interface ClassTypepublic 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 | |||||