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

java.lang.Objectorg.androidtransfuse.analysis.adapter.ASTGenericTypeWrapper
public class ASTGenericTypeWrapper
| Constructor Summary | |
|---|---|
ASTGenericTypeWrapper(ASTType astType,
LazyTypeParameterBuilder lazyTypeParameterBuilder)
|
|
| Method Summary | ||
|---|---|---|
boolean |
equals(Object o)
|
|
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 |
|
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 |
|
ASTType |
getSuperClass()
Supplies the super class (by extension) of this type |
|
int |
hashCode()
|
|
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()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
@Inject
public ASTGenericTypeWrapper(ASTType astType,
LazyTypeParameterBuilder lazyTypeParameterBuilder)
| Method Detail |
|---|
public List<ASTType> getGenericParameters()
ASTType
getGenericParameters in interface ASTTypepublic Collection<ASTMethod> getMethods()
ASTType
getMethods in interface ASTTypepublic Collection<ASTField> getFields()
ASTType
getFields in interface ASTTypepublic Collection<ASTConstructor> getConstructors()
ASTType
getConstructors in interface ASTTypepublic boolean isConcreteClass()
ASTType
isConcreteClass in interface ASTTypepublic ASTType getSuperClass()
ASTType
getSuperClass in interface ASTTypepublic Collection<ASTType> getInterfaces()
ASTType
getInterfaces in interface ASTTypepublic boolean isArray()
ASTType
isArray in interface ASTTypepublic boolean isAnnotated(Class<? extends Annotation> annotation)
ASTBase
isAnnotated in interface ASTBaseannotation - key
public Collection<ASTAnnotation> getAnnotations()
ASTBase
getAnnotations in interface ASTBasepublic <A extends Annotation> A getAnnotation(Class<A> annotation)
ASTBase
getAnnotation in interface ASTBaseA - annotation typeannotation - key
public String getName()
ASTBase
getName in interface ASTBasepublic 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 boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||