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.String getName()
          Returns the name of the erased type corresponding of this type.
 boolean isReified()
          Returns true if the type is reified.
 boolean isSubType(TypeInfo typeInfo)
          Returns true if the current type is a sub type of the argument.
 java.lang.Object unwrap()
          Unwraps the underlying type object and returns it
 

Method Detail

isReified

boolean isReified()
Returns true if the type is reified.

Returns:
the reifiability

getName

java.lang.String getName()
Returns the name of the erased type corresponding of this type.

Returns:
the name of the erased type

unwrap

java.lang.Object unwrap()
Unwraps the underlying type object and returns it

Returns:
the wrapped 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 © 2011 eXo Platform SAS. All Rights Reserved.