Package | Description |
---|---|
com.google.javascript.jscomp.newtypes |
Modifier and Type | Field and Description |
---|---|
static JSType |
JSType.BOOLEAN |
static JSType |
JSType.BOTTOM |
static JSType |
JSType.FALSE_TYPE |
static JSType |
JSType.FALSY |
static JSType |
JSType.NULL |
static JSType |
JSType.NULL_OR_UNDEF |
static JSType |
JSType.NUM_OR_STR |
static JSType |
JSType.NUMBER |
static JSType |
JSType.STRING |
static JSType |
JSType.TOP |
static JSType |
JSType.TOP_DICT |
static JSType |
JSType.TOP_OBJECT |
static JSType |
JSType.TOP_SCALAR |
static JSType |
JSType.TOP_STRUCT |
static JSType |
JSType.TRUE_TYPE |
static JSType |
JSType.TRUTHY |
static JSType |
JSType.UNDEFINED |
static JSType |
JSType.UNKNOWN |
Modifier and Type | Method and Description |
---|---|
JSType |
FunctionTypeBuilder.buildType() |
JSType |
FunctionType.createConstructorObject() |
static JSType |
JSType.fromFunctionType(FunctionType fn) |
static JSType |
JSType.fromObjectType(ObjectType obj) |
static JSType |
JSType.fromTypeVar(String template) |
JSType |
NominalType.RawNominalType.getCtorPropDeclaredType(String pname) |
JSType |
JSType.getDeclaredProp(QualifiedName qname) |
protected JSType |
ObjectType.getDeclaredProp(QualifiedName qname) |
protected JSType |
EnumType.getDeclaredProp(QualifiedName qname) |
JSType |
JSType.getEnumeratedType() |
JSType |
EnumType.getEnumeratedType() |
JSType |
DeclaredFunctionType.getFormalType(int argpos) |
JSType |
FunctionType.getFormalType(int argpos) |
JSType |
JSTypeCreatorFromJSDoc.getNodeTypeDeclaration(JSDocInfo jsdoc,
NominalType.RawNominalType ownerType,
DeclaredTypeRegistry registry) |
JSType |
EnumType.getObjLitType() |
JSType |
FunctionType.getOuterVarPrecondition(String name) |
JSType |
JSType.getProp(QualifiedName qname) |
protected JSType |
ObjectType.getProp(QualifiedName qname) |
protected JSType |
EnumType.getProp(QualifiedName qname) |
JSType |
NominalType.getPropDeclaredType(String pname) |
JSType |
NominalType.RawNominalType.getPropDeclaredType(String pname) |
JSType |
EnumType.getPropType() |
JSType |
DeclaredFunctionType.getReturnType() |
JSType |
FunctionType.getReturnType() |
JSType |
Typedef.getType() |
JSType |
TypeEnv.getType(String n) |
JSType |
FunctionType.getTypeOfThis() |
static JSType |
JSType.join(JSType lhs,
JSType rhs) |
JSType |
DeclaredTypeRegistry.lookupTypeByName(String name)
Returns a JSType from a given named type,
or null if the identifier is not defined.
|
static JSType |
JSType.meet(JSType lhs,
JSType rhs) |
JSType |
JSType.negate() |
static JSType |
JSType.plus(JSType lhs,
JSType rhs) |
JSType |
JSType.removeType(JSType other) |
JSType |
JSType.specialize(JSType other) |
JSType |
JSType.substituteGenerics(Map<String,JSType> concreteTypes) |
JSType |
JSType.toBoolean() |
static JSType |
JSType.topFunction() |
JSType |
JSType.withDeclaredProperty(QualifiedName qname,
JSType type,
boolean isConstant) |
JSType |
JSType.withLocation(String location) |
JSType |
JSType.withLoose()
Turns the class-less object of this type (if any) into a loose object
|
JSType |
JSType.withoutProperty(QualifiedName qname) |
JSType |
JSType.withProperty(QualifiedName qname,
JSType type) |
JSType |
JSType.withPropertyRequired(String pname) |
Modifier and Type | Method and Description |
---|---|
void |
NominalType.RawNominalType.addClassProperty(String pname,
JSType type,
boolean isConstant)
Add a new non-optional declared property to instances of this class
|
void |
NominalType.RawNominalType.addCtorProperty(String pname,
JSType type,
boolean isConstant)
Add a new non-optional declared property to this class's constructor
|
FunctionTypeBuilder |
FunctionTypeBuilder.addOptFormal(JSType t) |
FunctionTypeBuilder |
FunctionTypeBuilder.addOuterVarPrecondition(String name,
JSType t) |
void |
NominalType.RawNominalType.addProtoProperty(String pname,
JSType type,
boolean isConstant)
Add a new non-optional declared prototype property to this class
|
FunctionTypeBuilder |
FunctionTypeBuilder.addReqFormal(JSType t) |
FunctionTypeBuilder |
FunctionTypeBuilder.addRestFormals(JSType t) |
FunctionTypeBuilder |
FunctionTypeBuilder.addRetType(JSType t) |
static boolean |
JSType.areCompatibleScalarTypes(JSType lhs,
JSType rhs) |
boolean |
JSType.isNonLooseSubtypeOf(JSType other) |
boolean |
JSType.isSubtypeOf(JSType other) |
static JSType |
JSType.join(JSType lhs,
JSType rhs) |
static JSType |
JSType.meet(JSType lhs,
JSType rhs) |
static JSType |
JSType.plus(JSType lhs,
JSType rhs) |
TypeEnv |
TypeEnv.putType(String n,
JSType t) |
JSType |
JSType.removeType(JSType other) |
JSType |
JSType.specialize(JSType other) |
boolean |
JSType.unifyWith(JSType other,
List<String> typeParameters,
com.google.common.collect.Multimap<String,JSType> typeMultimap)
Unify
this , which may contain free type variables,
with other , a concrete type, modifying the supplied
typeMultimap to add any new template variable type bindings. |
JSType |
JSType.withDeclaredProperty(QualifiedName qname,
JSType type,
boolean isConstant) |
JSType |
JSType.withProperty(QualifiedName qname,
JSType type) |
Modifier and Type | Method and Description |
---|---|
FunctionType |
FunctionType.instantiateGenerics(Map<String,JSType> typeMap) |
JSType |
JSType.substituteGenerics(Map<String,JSType> concreteTypes) |
boolean |
JSType.unifyWith(JSType other,
List<String> typeParameters,
com.google.common.collect.Multimap<String,JSType> typeMultimap)
Unify
this , which may contain free type variables,
with other , a concrete type, modifying the supplied
typeMultimap to add any new template variable type bindings. |
Copyright © 2009–2016 Google. All rights reserved.