org.androidtransfuse.analysis.adapter
Class ASTEmptyType

Package class diagram package ASTEmptyType
java.lang.Object
  extended by org.androidtransfuse.analysis.adapter.ASTEmptyType
All Implemented Interfaces:
ASTBase, ASTType

public class ASTEmptyType
extends Object
implements ASTType

Author:
John Ericksen

Constructor Summary
ASTEmptyType(String name)
           
 
Method Summary
 boolean equals(Object o)
           
 boolean extendsFrom(ASTType type)
          Determines if the current type extends from the given type.
<A extends Annotation>
A
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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ASTEmptyType

public ASTEmptyType(String name)
Method Detail

getMethods

public Collection<ASTMethod> getMethods()
Description copied from interface: ASTType
Supplies all available methods

Specified by:
getMethods in interface ASTType
Returns:
available methods

getFields

public Collection<ASTField> getFields()
Description copied from interface: ASTType
Supplies all available fields

Specified by:
getFields in interface ASTType
Returns:
fields

getConstructors

public Collection<ASTConstructor> getConstructors()
Description copied from interface: ASTType
Supplies all available constructors

Specified by:
getConstructors in interface ASTType
Returns:
constructors

isConcreteClass

public boolean isConcreteClass()
Description copied from interface: ASTType
Determines if the given AST type represents a concrete class

Specified by:
isConcreteClass in interface ASTType
Returns:
concrete class status

getSuperClass

public ASTType getSuperClass()
Description copied from interface: ASTType
Supplies the super class (by extension) of this type

Specified by:
getSuperClass in interface ASTType
Returns:
supertype

getInterfaces

public Collection<ASTType> getInterfaces()
Description copied from interface: ASTType
Supplies the list of implemented interfaces

Specified by:
getInterfaces in interface ASTType
Returns:
interfaces implemented

isArray

public boolean isArray()
Description copied from interface: ASTType
Determines if this type is an array type

Specified by:
isArray in interface ASTType
Returns:
array type

getGenericParameters

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

Specified by:
getGenericParameters in interface ASTType
Returns:
generic parameters

inheritsFrom

public boolean inheritsFrom(ASTType type)
Description copied from interface: ASTType
Determines if the current type inherits (extends or implements) from the given type.

Specified by:
inheritsFrom in interface ASTType
Parameters:
type - implementing from
Returns:
inheritance

extendsFrom

public boolean extendsFrom(ASTType type)
Description copied from interface: ASTType
Determines if the current type extends from the given type.

Specified by:
extendsFrom in interface ASTType
Parameters:
type - implementing from
Returns:
inheritance

implementsFrom

public boolean implementsFrom(ASTType type)
Description copied from interface: ASTType
Determines if the current type implements the given type.

Specified by:
implementsFrom in interface ASTType
Parameters:
type - implementing from
Returns:
inheritance

isAnnotated

public boolean isAnnotated(Class<? extends Annotation> annotation)
Description copied from interface: ASTBase
Determines if the current element is annotated with the given annotation class

Specified by:
isAnnotated in interface ASTBase
Parameters:
annotation - key
Returns:
annotated conditional

getAnnotations

public Collection<ASTAnnotation> getAnnotations()
Description copied from interface: ASTBase
Supplies the set of annotations

Specified by:
getAnnotations in interface ASTBase
Returns:
ast annotation list

getAnnotation

public <A extends Annotation> A getAnnotation(Class<A> annotation)
Description copied from interface: ASTBase
Supplies the given annotation instance from the given annotation class key

Specified by:
getAnnotation in interface ASTBase
Type Parameters:
A - annotation type
Parameters:
annotation - key
Returns:
annotation instance

getASTAnnotation

public ASTAnnotation getASTAnnotation(Class annotation)
Description copied from interface: ASTBase
Getter for the AST Annotation associated with the given annotation type

Specified by:
getASTAnnotation in interface ASTBase
Parameters:
annotation - type
Returns:
annotation AST

getName

public String getName()
Description copied from interface: ASTBase
Supplies the name of the current tree node

Specified by:
getName in interface ASTBase
Returns:
name of the current node

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2012. All Rights Reserved.