org.reflext.api
Interface TypeInfo

All Known Subinterfaces:
ArrayTypeInfo, ClassTypeInfo, ParameterizedTypeInfo, SimpleTypeInfo, TypeVariableInfo, VoidTypeInfo, WildcardTypeInfo

public interface TypeInfo

Version:
$Revision$
Author:
Julien Viet

Method Summary
 void accept(Visitor visitor)
          Visit the type info.
 Object getType()
          Returns the underlying type object.
 boolean isSubType(TypeInfo typeInfo)
          Returns true if the current type is a sub type of the argument.
 

Method Detail

getType

Object getType()
Returns the underlying type object.

Returns:
the underlying type object

accept

void accept(Visitor visitor)
Visit the type info.

Parameters:
visitor - the visitor

isSubType

boolean isSubType(TypeInfo typeInfo)
Returns true if the current type is a sub type of the argument.

Parameters:
typeInfo - the type to test
Returns:
true if this type is a subtype of the argument


Copyright © 2009 eXo Platform SAS. All Rights Reserved.