org.reflext.api.relationship
Class SubType
java.lang.Object
org.reflext.api.relationship.SubType
- All Implemented Interfaces:
- TypeRelationship<TypeInfo,TypeInfo>
public class SubType
- extends java.lang.Object
- implements TypeRelationship<TypeInfo,TypeInfo>
- Version:
- $Revision$
- Author:
- Julien Viet
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SubType
public SubType()
isSatisfied
public boolean isSatisfied(TypeInfo t1,
TypeInfo t2)
- The sub type relationship is satisfied when the t1 type extends the
t2 type.
- Specified by:
isSatisfied in interface TypeRelationship<TypeInfo,TypeInfo>
- Parameters:
t1 - the first typet2 - the second type
- Returns:
- the satisfaction of the relationship
isSubType
public boolean isSubType(TypeInfo subTI,
TypeInfo superTI)
isSubType
public boolean isSubType(TypeInfo subTI,
ClassTypeInfo superCTI)
isSubType
public boolean isSubType(TypeInfo subTI,
VoidTypeInfo superVTI)
checkVariableExtension
public boolean checkVariableExtension(TypeVariableInfo superTVI,
TypeVariableInfo subTVI,
TypeInfo ti)
isSubType
public boolean isSubType(TypeInfo subTI,
TypeVariableInfo superTVI)
isSubType
public boolean isSubType(TypeInfo subTI,
ParameterizedTypeInfo superPTI)
isSubType
public boolean isSubType(TypeInfo subTI,
ArrayTypeInfo superATI)
Copyright © 2010 eXo Platform SAS. All Rights Reserved.