class CanCastToVisitor extends java.lang.Object implements RelationshipVisitor<java.lang.Boolean>
Constructor and Description |
---|
CanCastToVisitor() |
Modifier and Type | Method and Description |
---|---|
(package private) boolean |
canCastToFunction(JSType thisType,
FunctionType functionType) |
(package private) boolean |
canCastToUnion(JSType thisType,
UnionType unionType) |
java.lang.Boolean |
caseAllType(JSType thatType)
All type's case.
|
java.lang.Boolean |
caseEnumElementType(EnumElementType typeType,
JSType thatType)
Enum element type's case.
|
java.lang.Boolean |
caseFunctionType(FunctionType thisType,
JSType thatType)
Function type's case.
|
java.lang.Boolean |
caseNoObjectType(JSType thatType)
Bottom Object type's case.
|
java.lang.Boolean |
caseNoType(JSType thatType)
Bottom type's case.
|
java.lang.Boolean |
caseObjectType(ObjectType thisType,
JSType thatType)
Object type's case.
|
java.lang.Boolean |
caseTemplateType(TemplateType thisType,
JSType thatType)
Template type's case.
|
java.lang.Boolean |
caseTemplatizedType(TemplatizedType thisType,
JSType thatType)
Templatized type's case.
|
java.lang.Boolean |
caseUnionType(UnionType thisType,
JSType thatType)
Union type's case.
|
java.lang.Boolean |
caseUnknownType(JSType thisType,
JSType thatType)
Unknown type's case.
|
java.lang.Boolean |
caseValueType(ValueType thisType,
JSType thatType)
Value type's case.
|
(package private) java.lang.Boolean |
castCastToHelper(JSType thisType,
JSType thatType) |
private boolean |
isInterface(JSType type) |
public java.lang.Boolean caseUnknownType(JSType thisType, JSType thatType)
RelationshipVisitor
caseUnknownType
in interface RelationshipVisitor<java.lang.Boolean>
public java.lang.Boolean caseNoType(JSType thatType)
RelationshipVisitor
caseNoType
in interface RelationshipVisitor<java.lang.Boolean>
public java.lang.Boolean caseNoObjectType(JSType thatType)
RelationshipVisitor
caseNoObjectType
in interface RelationshipVisitor<java.lang.Boolean>
public java.lang.Boolean caseAllType(JSType thatType)
RelationshipVisitor
caseAllType
in interface RelationshipVisitor<java.lang.Boolean>
boolean canCastToFunction(JSType thisType, FunctionType functionType)
private boolean isInterface(JSType type)
public java.lang.Boolean caseValueType(ValueType thisType, JSType thatType)
RelationshipVisitor
caseValueType
in interface RelationshipVisitor<java.lang.Boolean>
public java.lang.Boolean caseObjectType(ObjectType thisType, JSType thatType)
RelationshipVisitor
caseObjectType
in interface RelationshipVisitor<java.lang.Boolean>
public java.lang.Boolean caseFunctionType(FunctionType thisType, JSType thatType)
RelationshipVisitor
caseFunctionType
in interface RelationshipVisitor<java.lang.Boolean>
public java.lang.Boolean caseUnionType(UnionType thisType, JSType thatType)
RelationshipVisitor
caseUnionType
in interface RelationshipVisitor<java.lang.Boolean>
public java.lang.Boolean caseTemplatizedType(TemplatizedType thisType, JSType thatType)
RelationshipVisitor
caseTemplatizedType
in interface RelationshipVisitor<java.lang.Boolean>
public java.lang.Boolean caseTemplateType(TemplateType thisType, JSType thatType)
RelationshipVisitor
caseTemplateType
in interface RelationshipVisitor<java.lang.Boolean>
public java.lang.Boolean caseEnumElementType(EnumElementType typeType, JSType thatType)
RelationshipVisitor
caseEnumElementType
in interface RelationshipVisitor<java.lang.Boolean>