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 TcaseAllType()All type's case.TcaseBigIntType()BigInt value type's case.TcaseBooleanType()Boolean value type's case.protected abstract TcaseDefault(@Nullable JSType type)Called for all cases unless the specific case is overridden in the concrete subclass.TcaseEnumElementType(EnumElementType type)Enum element type's case.TcaseFunctionType(FunctionType type)Function type's case.TcaseNamedType(NamedType type)Named type's case.TcaseNoObjectType()Bottom Object type's case.TcaseNoType(NoType type)Bottom type's case.TcaseNullType()Null type's case.TcaseNumberType()Number value type's case.TcaseObjectType(ObjectType type)Object type's case.TcaseProxyObjectType(ProxyObjectType type)Proxy type's case.TcaseStringType()String value type's case.TcaseSymbolType()Symbol value type's case.TcaseTemplateType(TemplateType type)Template type's case.TcaseTemplatizedType(TemplatizedType type)Templatized type's case.TcaseUnionType(UnionType type)Union type's case.TcaseUnknownType()Unknown type's case.TcaseVoidType()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.nullis passed iff the caller is a spcific case that has noJSTypeargument, examplecaseAllType().
-
caseNoType
public T caseNoType(NoType type)
Description copied from interface:VisitorBottom type's case.- Specified by:
caseNoTypein interfaceVisitor<T>
-
caseEnumElementType
public T caseEnumElementType(EnumElementType type)
Description copied from interface:VisitorEnum element type's case.- Specified by:
caseEnumElementTypein interfaceVisitor<T>
-
caseAllType
public T caseAllType()
Description copied from interface:VisitorAll type's case.- Specified by:
caseAllTypein interfaceVisitor<T>
-
caseBooleanType
public T caseBooleanType()
Description copied from interface:VisitorBoolean value type's case.- Specified by:
caseBooleanTypein interfaceVisitor<T>
-
caseNoObjectType
public T caseNoObjectType()
Description copied from interface:VisitorBottom Object type's case.- Specified by:
caseNoObjectTypein interfaceVisitor<T>
-
caseFunctionType
public T caseFunctionType(FunctionType type)
Description copied from interface:VisitorFunction type's case.- Specified by:
caseFunctionTypein interfaceVisitor<T>
-
caseObjectType
public T caseObjectType(ObjectType type)
Description copied from interface:VisitorObject type's case.- Specified by:
caseObjectTypein interfaceVisitor<T>
-
caseUnknownType
public T caseUnknownType()
Description copied from interface:VisitorUnknown type's case.- Specified by:
caseUnknownTypein interfaceVisitor<T>
-
caseNullType
public T caseNullType()
Description copied from interface:VisitorNull type's case.- Specified by:
caseNullTypein interfaceVisitor<T>
-
caseNamedType
public T caseNamedType(NamedType type)
Description copied from interface:VisitorNamed type's case.- Specified by:
caseNamedTypein interfaceVisitor<T>
-
caseProxyObjectType
public T caseProxyObjectType(ProxyObjectType type)
Description copied from interface:VisitorProxy type's case.- Specified by:
caseProxyObjectTypein interfaceVisitor<T>
-
caseNumberType
public T caseNumberType()
Description copied from interface:VisitorNumber value type's case.- Specified by:
caseNumberTypein interfaceVisitor<T>
-
caseBigIntType
public T caseBigIntType()
Description copied from interface:VisitorBigInt value type's case.- Specified by:
caseBigIntTypein interfaceVisitor<T>
-
caseStringType
public T caseStringType()
Description copied from interface:VisitorString value type's case.- Specified by:
caseStringTypein interfaceVisitor<T>
-
caseSymbolType
public T caseSymbolType()
Description copied from interface:VisitorSymbol value type's case.- Specified by:
caseSymbolTypein interfaceVisitor<T>
-
caseVoidType
public T caseVoidType()
Description copied from interface:VisitorVoid type's case.- Specified by:
caseVoidTypein interfaceVisitor<T>
-
caseUnionType
public T caseUnionType(UnionType type)
Description copied from interface:VisitorUnion type's case.- Specified by:
caseUnionTypein interfaceVisitor<T>
-
caseTemplatizedType
public T caseTemplatizedType(TemplatizedType type)
Description copied from interface:VisitorTemplatized type's case.- Specified by:
caseTemplatizedTypein interfaceVisitor<T>
-
caseTemplateType
public T caseTemplateType(TemplateType type)
Description copied from interface:VisitorTemplate type's case.- Specified by:
caseTemplateTypein interfaceVisitor<T>
-
-