org.androidtransfuse.analysis.adapter
Interface ASTType

Package class diagram package ASTType
All Superinterfaces:
ASTBase
All Known Implementing Classes:
ASTArrayType, ASTClassType, ASTElementType, ASTEmptyType, ASTGenericTypeWrapper, ASTPrimitiveType, ASTProxyType, ASTTypeVirtualProxy, ASTVoidType

public interface ASTType
extends ASTBase

Abstract Syntax Tree Type node

Author:
John Ericksen

Method Summary
 boolean extendsFrom(ASTType type)
          Determines if the current type extends from the given 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
 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 isArray()
          Determines if this type is an array type
 boolean isConcreteClass()
          Determines if the given AST type represents a concrete class
 
Methods inherited from interface org.androidtransfuse.analysis.adapter.ASTBase
getAnnotation, getAnnotations, getASTAnnotation, getName, isAnnotated
 

Method Detail

getMethods

Collection<ASTMethod> getMethods()
Supplies all available methods

Returns:
available methods

getFields

Collection<ASTField> getFields()
Supplies all available fields

Returns:
fields

getConstructors

Collection<ASTConstructor> getConstructors()
Supplies all available constructors

Returns:
constructors

isConcreteClass

boolean isConcreteClass()
Determines if the given AST type represents a concrete class

Returns:
concrete class status

getSuperClass

ASTType getSuperClass()
Supplies the super class (by extension) of this type

Returns:
supertype

getInterfaces

Collection<ASTType> getInterfaces()
Supplies the list of implemented interfaces

Returns:
interfaces implemented

isArray

boolean isArray()
Determines if this type is an array type

Returns:
array type

getGenericParameters

List<ASTType> getGenericParameters()
Generates a list of the generic type parameters, if they are appropriate for the type and exist.

Returns:
generic parameters

inheritsFrom

boolean inheritsFrom(ASTType type)
Determines if the current type inherits (extends or implements) from the given type.

Parameters:
type - implementing from
Returns:
inheritance

extendsFrom

boolean extendsFrom(ASTType type)
Determines if the current type extends from the given type.

Parameters:
type - implementing from
Returns:
inheritance

implementsFrom

boolean implementsFrom(ASTType type)
Determines if the current type implements the given type.

Parameters:
type - implementing from
Returns:
inheritance


Copyright © 2012. All Rights Reserved.