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
<V extends Visitor<V,S>,S extends VisitorStrategy<V,S>>
void
accept(S strategy, V visitor)
          Visit the type info.
 java.lang.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

java.lang.Object getType()
Returns the underlying type object.

Returns:
the underlying type object

accept

<V extends Visitor<V,S>,S extends VisitorStrategy<V,S>> void accept(S strategy,
                                                                    V visitor)
Visit the type info.

Type Parameters:
V - the visitor generic type
S - the strategy generic type
Parameters:
strategy - the strategy
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 © 2010 eXo Platform SAS. All Rights Reserved.