Class Visitor.WithDefaultCase<T>
java.lang.Object
com.google.javascript.rhino.jstype.Visitor.WithDefaultCase<T>
- All Implemented Interfaces:
Visitor<T>
A type visitor with a default behaviour.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.google.javascript.rhino.jstype.Visitor
Visitor.WithDefaultCase<T> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAll type's case.BigInt value type's case.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.Enum element type's case.caseFunctionType(FunctionType type) Function type's case.caseNamedType(NamedType type) Named type's case.Bottom Object type's case.caseNoType(NoType type) Bottom type's case.Null type's case.Number value type's case.caseObjectType(ObjectType type) Object type's case.Proxy type's case.String value type's case.Symbol value type's case.caseTemplateType(TemplateType type) Template type's case.Templatized type's case.caseUnionType(UnionType type) Union type's case.Unknown type's case.Void type's case.
-
Constructor Details
-
WithDefaultCase
public WithDefaultCase()
-
-
Method Details
-
caseDefault
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
Description copied from interface:VisitorBottom type's case.- Specified by:
caseNoTypein interfaceVisitor<T>
-
caseEnumElementType
Description copied from interface:VisitorEnum element type's case.- Specified by:
caseEnumElementTypein interfaceVisitor<T>
-
caseAllType
Description copied from interface:VisitorAll type's case.- Specified by:
caseAllTypein interfaceVisitor<T>
-
caseBooleanType
Description copied from interface:VisitorBoolean value type's case.- Specified by:
caseBooleanTypein interfaceVisitor<T>
-
caseNoObjectType
Description copied from interface:VisitorBottom Object type's case.- Specified by:
caseNoObjectTypein interfaceVisitor<T>
-
caseFunctionType
Description copied from interface:VisitorFunction type's case.- Specified by:
caseFunctionTypein interfaceVisitor<T>
-
caseObjectType
Description copied from interface:VisitorObject type's case.- Specified by:
caseObjectTypein interfaceVisitor<T>
-
caseUnknownType
Description copied from interface:VisitorUnknown type's case.- Specified by:
caseUnknownTypein interfaceVisitor<T>
-
caseNullType
Description copied from interface:VisitorNull type's case.- Specified by:
caseNullTypein interfaceVisitor<T>
-
caseNamedType
Description copied from interface:VisitorNamed type's case.- Specified by:
caseNamedTypein interfaceVisitor<T>
-
caseProxyObjectType
Description copied from interface:VisitorProxy type's case.- Specified by:
caseProxyObjectTypein interfaceVisitor<T>
-
caseNumberType
Description copied from interface:VisitorNumber value type's case.- Specified by:
caseNumberTypein interfaceVisitor<T>
-
caseBigIntType
Description copied from interface:VisitorBigInt value type's case.- Specified by:
caseBigIntTypein interfaceVisitor<T>
-
caseStringType
Description copied from interface:VisitorString value type's case.- Specified by:
caseStringTypein interfaceVisitor<T>
-
caseSymbolType
Description copied from interface:VisitorSymbol value type's case.- Specified by:
caseSymbolTypein interfaceVisitor<T>
-
caseVoidType
Description copied from interface:VisitorVoid type's case.- Specified by:
caseVoidTypein interfaceVisitor<T>
-
caseUnionType
Description copied from interface:VisitorUnion type's case.- Specified by:
caseUnionTypein interfaceVisitor<T>
-
caseTemplatizedType
Description copied from interface:VisitorTemplatized type's case.- Specified by:
caseTemplatizedTypein interfaceVisitor<T>
-
caseTemplateType
Description copied from interface:VisitorTemplate type's case.- Specified by:
caseTemplateTypein interfaceVisitor<T>
-