|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||

java.lang.Objectjava.lang.Enum<ASTPrimitiveType>
org.androidtransfuse.analysis.adapter.ASTPrimitiveType
public enum ASTPrimitiveType
Element specific primitive AST type
| Enum Constant Summary | |
|---|---|
BOOLEAN
|
|
BYTE
|
|
CHAR
|
|
DOUBLE
|
|
FLOAT
|
|
INT
|
|
LONG
|
|
SHORT
|
|
| Method Summary | ||
|---|---|---|
boolean |
extendsFrom(ASTType type)
Determines if the current type extends from the given type. |
|
|
getAnnotation(Class<A> annotation)
Supplies the given annotation instance from the given annotation class key |
|
Collection<ASTAnnotation> |
getAnnotations()
Supplies the set of annotations |
|
ASTAnnotation |
getASTAnnotation(Class annotation)
Getter for the AST Annotation associated with the given annotation type |
|
static ASTPrimitiveType |
getAutoboxType(String name)
|
|
Collection<ASTConstructor> |
getConstructors()
Supplies all available constructors |
|
Collection<ASTField> |
getFields()
Supplies all available fields |
|
List<ASTType> |
getGenericParameters()
Generates a list of the generic type parameters, if they are appropriate for the type and exist. |
|
Collection<ASTType> |
getInterfaces()
Supplies the list of implemented interfaces |
|
Collection<ASTMethod> |
getMethods()
Supplies all available methods |
|
String |
getName()
Supplies the name of the current tree node |
|
Class |
getObjectClass()
|
|
ASTType |
getSuperClass()
Supplies the super class (by extension) of this type |
|
boolean |
implementsFrom(ASTType type)
Determines if the current type implements the given type. |
|
boolean |
inheritsFrom(ASTType type)
Determines if the current type inherits (extends or implements) from the given type. |
|
boolean |
isAnnotated(Class<? extends Annotation> annotation)
Determines if the current element is annotated with the given annotation class |
|
boolean |
isArray()
Determines if this type is an array type |
|
boolean |
isConcreteClass()
Determines if the given AST type represents a concrete class |
|
String |
toString()
|
|
static ASTPrimitiveType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
|
static ASTPrimitiveType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
|
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final ASTPrimitiveType BOOLEAN
public static final ASTPrimitiveType BYTE
public static final ASTPrimitiveType SHORT
public static final ASTPrimitiveType CHAR
public static final ASTPrimitiveType INT
public static final ASTPrimitiveType FLOAT
public static final ASTPrimitiveType LONG
public static final ASTPrimitiveType DOUBLE
| Method Detail |
|---|
public static ASTPrimitiveType[] values()
for (ASTPrimitiveType c : ASTPrimitiveType.values()) System.out.println(c);
public static ASTPrimitiveType valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic boolean isAnnotated(Class<? extends Annotation> annotation)
ASTBase
isAnnotated in interface ASTBaseannotation - key
public <A extends Annotation> A getAnnotation(Class<A> annotation)
ASTBase
getAnnotation in interface ASTBaseA - annotation typeannotation - key
public Collection<ASTMethod> getMethods()
ASTType
getMethods in interface ASTTypepublic Collection<ASTField> getFields()
ASTType
getFields in interface ASTTypepublic Collection<ASTConstructor> getConstructors()
ASTType
getConstructors in interface ASTTypepublic String getName()
ASTBase
getName in interface ASTBasepublic Class getObjectClass()
public boolean isConcreteClass()
ASTType
isConcreteClass in interface ASTTypepublic Collection<ASTAnnotation> getAnnotations()
ASTBase
getAnnotations in interface ASTBasepublic Collection<ASTType> getInterfaces()
ASTType
getInterfaces in interface ASTTypepublic ASTType getSuperClass()
ASTType
getSuperClass in interface ASTTypepublic boolean isArray()
ASTType
isArray in interface ASTTypepublic List<ASTType> getGenericParameters()
ASTType
getGenericParameters in interface ASTTypepublic static ASTPrimitiveType getAutoboxType(String name)
public boolean inheritsFrom(ASTType type)
ASTType
inheritsFrom in interface ASTTypetype - implementing from
public boolean extendsFrom(ASTType type)
ASTType
extendsFrom in interface ASTTypetype - implementing from
public boolean implementsFrom(ASTType type)
ASTType
implementsFrom in interface ASTTypetype - implementing from
public ASTAnnotation getASTAnnotation(Class annotation)
ASTBase
getASTAnnotation in interface ASTBaseannotation - type
public String toString()
toString in class Enum<ASTPrimitiveType>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||