Class Visitor.WithDefaultCase<T>
- java.lang.Object
-
- com.google.javascript.rhino.jstype.Visitor.WithDefaultCase<T>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.google.javascript.rhino.jstype.Visitor
Visitor.WithDefaultCase<T>
-
-
Constructor Summary
Constructors Constructor Description WithDefaultCase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description T
caseAllType()
All type's case.T
caseBigIntType()
BigInt value type's case.T
caseBooleanType()
Boolean value type's case.protected abstract T
caseDefault(JSType type)
Called for all cases unless the specific case is overridden in the concrete subclass.T
caseEnumElementType(EnumElementType type)
Enum element type's case.T
caseFunctionType(FunctionType type)
Function type's case.T
caseNamedType(NamedType type)
Named type's case.T
caseNoObjectType()
Bottom Object type's case.T
caseNoType(NoType type)
Bottom type's case.T
caseNullType()
Null type's case.T
caseNumberType()
Number value type's case.T
caseObjectType(ObjectType type)
Object type's case.T
caseProxyObjectType(ProxyObjectType type)
Proxy type's case.T
caseStringType()
String value type's case.T
caseSymbolType()
Symbol value type's case.T
caseTemplateType(TemplateType type)
Template type's case.T
caseTemplatizedType(TemplatizedType type)
Templatized type's case.T
caseUnionType(UnionType type)
Union type's case.T
caseUnknownType()
Unknown type's case.T
caseVoidType()
Void type's case.
-
-
-
Method Detail
-
caseDefault
@ForOverride protected abstract T caseDefault(@Nullable JSType type)
Called for all cases unless the specific case is overridden in the concrete subclass.null
is passed iff the caller is a spcific case that has noJSType
argument, examplecaseAllType()
.
-
caseNoType
public T caseNoType(NoType type)
Description copied from interface:Visitor
Bottom type's case.- Specified by:
caseNoType
in interfaceVisitor<T>
-
caseEnumElementType
public T caseEnumElementType(EnumElementType type)
Description copied from interface:Visitor
Enum element type's case.- Specified by:
caseEnumElementType
in interfaceVisitor<T>
-
caseAllType
public T caseAllType()
Description copied from interface:Visitor
All type's case.- Specified by:
caseAllType
in interfaceVisitor<T>
-
caseBooleanType
public T caseBooleanType()
Description copied from interface:Visitor
Boolean value type's case.- Specified by:
caseBooleanType
in interfaceVisitor<T>
-
caseNoObjectType
public T caseNoObjectType()
Description copied from interface:Visitor
Bottom Object type's case.- Specified by:
caseNoObjectType
in interfaceVisitor<T>
-
caseFunctionType
public T caseFunctionType(FunctionType type)
Description copied from interface:Visitor
Function type's case.- Specified by:
caseFunctionType
in interfaceVisitor<T>
-
caseObjectType
public T caseObjectType(ObjectType type)
Description copied from interface:Visitor
Object type's case.- Specified by:
caseObjectType
in interfaceVisitor<T>
-
caseUnknownType
public T caseUnknownType()
Description copied from interface:Visitor
Unknown type's case.- Specified by:
caseUnknownType
in interfaceVisitor<T>
-
caseNullType
public T caseNullType()
Description copied from interface:Visitor
Null type's case.- Specified by:
caseNullType
in interfaceVisitor<T>
-
caseNamedType
public T caseNamedType(NamedType type)
Description copied from interface:Visitor
Named type's case.- Specified by:
caseNamedType
in interfaceVisitor<T>
-
caseProxyObjectType
public T caseProxyObjectType(ProxyObjectType type)
Description copied from interface:Visitor
Proxy type's case.- Specified by:
caseProxyObjectType
in interfaceVisitor<T>
-
caseNumberType
public T caseNumberType()
Description copied from interface:Visitor
Number value type's case.- Specified by:
caseNumberType
in interfaceVisitor<T>
-
caseBigIntType
public T caseBigIntType()
Description copied from interface:Visitor
BigInt value type's case.- Specified by:
caseBigIntType
in interfaceVisitor<T>
-
caseStringType
public T caseStringType()
Description copied from interface:Visitor
String value type's case.- Specified by:
caseStringType
in interfaceVisitor<T>
-
caseSymbolType
public T caseSymbolType()
Description copied from interface:Visitor
Symbol value type's case.- Specified by:
caseSymbolType
in interfaceVisitor<T>
-
caseVoidType
public T caseVoidType()
Description copied from interface:Visitor
Void type's case.- Specified by:
caseVoidType
in interfaceVisitor<T>
-
caseUnionType
public T caseUnionType(UnionType type)
Description copied from interface:Visitor
Union type's case.- Specified by:
caseUnionType
in interfaceVisitor<T>
-
caseTemplatizedType
public T caseTemplatizedType(TemplatizedType type)
Description copied from interface:Visitor
Templatized type's case.- Specified by:
caseTemplatizedType
in interfaceVisitor<T>
-
caseTemplateType
public T caseTemplateType(TemplateType type)
Description copied from interface:Visitor
Template type's case.- Specified by:
caseTemplateType
in interfaceVisitor<T>
-
-