Package | Description |
---|---|
com.google.javascript.jscomp.newtypes | |
com.google.javascript.rhino |
The core AST from Rhino.
|
com.google.javascript.rhino.jstype |
Provides abstractions to represent types in JavaScript.
|
Modifier and Type | Method and Description |
---|---|
TypeI |
JSType.restrictByNotNullOrUndefined() |
Modifier and Type | Method and Description |
---|---|
boolean |
JSType.isEquivalentTo(TypeI type) |
boolean |
JSType.isSubtypeOf(TypeI other) |
Modifier and Type | Interface and Description |
---|---|
interface |
FunctionTypeI |
interface |
ObjectTypeI |
Modifier and Type | Method and Description |
---|---|
<T extends TypeI> |
TypeIRegistry.getNativeType(JSTypeNative typeId) |
<T extends TypeI> |
TypeIRegistry.getType(String typeName) |
Modifier and Type | Method and Description |
---|---|
TypeI |
FunctionTypeI.convertMethodToFunction()
Creates a new function type B based on the original function type A.
|
TypeI |
TypeIRegistry.createTypeFromCommentNode(Node n,
String sourceName,
StaticTypedScope<? extends TypeI> scope) |
TypeI |
JSTypeExpression.evaluateInEmptyScope(TypeIRegistry registry) |
TypeI |
Node.getTypeI() |
TypeI |
FunctionTypeI.getTypeOfThis() |
TypeI |
TypeI.restrictByNotNullOrUndefined() |
Modifier and Type | Method and Description |
---|---|
boolean |
TypeI.isEquivalentTo(TypeI type) |
boolean |
TypeI.isSubtypeOf(TypeI type) |
void |
Node.setTypeI(TypeI type) |
Modifier and Type | Method and Description |
---|---|
TypeI |
TypeIRegistry.createTypeFromCommentNode(Node n,
String sourceName,
StaticTypedScope<? extends TypeI> scope) |
Modifier and Type | Class and Description |
---|---|
class |
AllType
All type, representing all values.
|
class |
BooleanType
Boolean type.
|
class |
EnumElementType
The type of individual elements of an enum type
(see
EnumType ). |
class |
EnumType
An enum type representing a branded collection of elements.
|
class |
FunctionType
This derived type provides extended information about a function, including
its return type and argument types.
|
class |
JSType
Represents JavaScript value types.
|
class |
NamedType
A
NamedType is a named reference to some other type. |
class |
NoObjectType
The bottom Object type, representing the subclass of all objects.
|
class |
NoType
Bottom type, representing the subclass of any value or object.
|
class |
NullType
Null type.
|
class |
NumberType
Number type.
|
class |
ObjectType
Object type.
|
class |
PrototypeObjectType
The object type represents instances of JavaScript objects such as
Object , Date , Function . |
class |
ProxyObjectType
An object type which uses composition to delegate all calls.
|
class |
RecordType
A record (structural) type.
|
class |
StringType
String type.
|
class |
TemplateType |
class |
TemplatizedType
An object type with declared template types, such as
Array<string> . |
class |
UnionType
The
UnionType implements a common JavaScript idiom in which the
code is specifically designed to work with multiple input types. |
class |
UnknownType
The
Unknown type. |
class |
VoidType
Void type whose only element is the
undefined value. |
Modifier and Type | Method and Description |
---|---|
TypeI |
FunctionType.convertMethodToFunction() |
Modifier and Type | Method and Description |
---|---|
boolean |
JSType.isEquivalentTo(TypeI that)
Checks if two types are equivalent.
|
boolean |
JSType.isEquivalentTo(TypeI that,
boolean isStructural) |
boolean |
JSType.isSubtypeOf(TypeI other) |
Modifier and Type | Method and Description |
---|---|
JSType |
JSTypeRegistry.createTypeFromCommentNode(Node n,
String sourceName,
StaticTypedScope<? extends TypeI> scope)
Creates a JSType from the nodes representing a type.
|
Copyright © 2009–2023 Google. All rights reserved.