abstract class ChainableReverseAbstractInterpreter.RestrictByTypeOfResultVisitor extends java.lang.Object implements Visitor<JSType>
typeof
-like conditions.Constructor and Description |
---|
RestrictByTypeOfResultVisitor() |
Modifier and Type | Method and Description |
---|---|
JSType |
caseAllType()
All type's case.
|
JSType |
caseEnumElementType(EnumElementType enumElementType)
Enum element type's case.
|
JSType |
caseNamedType(NamedType type)
Named type's case.
|
JSType |
caseNoType(NoType type)
Bottom type's case.
|
JSType |
caseProxyObjectType(ProxyObjectType type)
Proxy type's case.
|
JSType |
caseTemplateType(TemplateType templateType)
Template type's case.
|
JSType |
caseTemplatizedType(TemplatizedType type)
Templatized type's case.
|
protected abstract JSType |
caseTopType(JSType topType)
Abstracts away the similarities between visiting the unknown type and the
all type.
|
JSType |
caseUnionType(UnionType type)
Union type's case.
|
JSType |
caseUnknownType()
Unknown type's case.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
caseBooleanType, caseFunctionType, caseNoObjectType, caseNullType, caseNumberType, caseObjectType, caseStringType, caseVoidType
protected abstract JSType caseTopType(JSType topType)
topType
- UNKNOWN_TYPE
or ALL_TYPE
caseAllType()
,
caseUnknownType()
public JSType caseAllType()
Visitor
caseAllType
in interface Visitor<JSType>
public JSType caseUnknownType()
Visitor
caseUnknownType
in interface Visitor<JSType>
public JSType caseUnionType(UnionType type)
Visitor
caseUnionType
in interface Visitor<JSType>
public JSType caseNoType(NoType type)
Visitor
caseNoType
in interface Visitor<JSType>
public JSType caseEnumElementType(EnumElementType enumElementType)
Visitor
caseEnumElementType
in interface Visitor<JSType>
public JSType caseTemplatizedType(TemplatizedType type)
Visitor
caseTemplatizedType
in interface Visitor<JSType>
public JSType caseTemplateType(TemplateType templateType)
Visitor
caseTemplateType
in interface Visitor<JSType>
public JSType caseNamedType(NamedType type)
Visitor
caseNamedType
in interface Visitor<JSType>
public JSType caseProxyObjectType(ProxyObjectType type)
Visitor
caseProxyObjectType
in interface Visitor<JSType>