| 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 |
|---|---|
JSTypeExpression |
EnumType.getTypeExpr() |
JSTypeExpression |
Typedef.getTypeExpr() |
JSTypeExpression |
EnumType.getTypeExprForErrorReporting() |
JSTypeExpression |
Typedef.getTypeExprForErrorReporting() |
| Modifier and Type | Method and Description |
|---|---|
static Typedef |
Typedef.make(JSTypeExpression typeExpr) |
static EnumType |
EnumType.make(JSTypes commonTypes,
String name,
Node defSite,
JSTypeExpression typeExpr,
Collection<String> props) |
| Modifier and Type | Method and Description |
|---|---|
JSTypeExpression |
JSTypeExpression.copy() |
JSTypeExpression |
JSDocInfo.getBaseType()
Gets the base type specified by the
@extends annotation. |
JSTypeExpression |
JSDocInfo.getEnumParameterType()
Gets the enum parameter type specified by the
@enum annotation. |
JSTypeExpression |
JSDocInfo.getParameterType(String parameter)
Gets the type of a given named parameter.
|
JSTypeExpression |
JSDocInfo.getReturnType()
Gets the return type specified by the
@return annotation. |
JSTypeExpression |
JSDocInfo.getThisType()
Gets the type specified by the
@this annotation. |
JSTypeExpression |
JSDocInfo.getType()
Gets the type specified by the
@type annotation. |
JSTypeExpression |
JSDocInfo.getTypedefType()
Gets the typedef type specified by the
@type annotation. |
static JSTypeExpression |
JSTypeExpression.makeOptionalArg(JSTypeExpression expr)
Make the given type expression into an optional type expression,
if possible.
|
| Modifier and Type | Method and Description |
|---|---|
List<JSTypeExpression> |
JSDocInfo.getExtendedInterfaces()
Returns the interfaces extended by an interface
|
List<JSTypeExpression> |
JSDocInfo.getImplementedInterfaces()
Returns the types specified by the
@implements annotation. |
List<JSTypeExpression> |
JSDocInfo.getThrownTypes()
Returns the list of thrown types.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
JSDocInfoBuilder.changeBaseType(JSTypeExpression jsType)
Changes a base type, even if one has already been set on currentInfo.
|
TypeI |
TypeIRegistry.evaluateTypeExpression(JSTypeExpression expr,
TypeIEnv<TypeI> typeEnv) |
TypeI |
TypeIRegistry.evaluateTypeExpressionInGlobalScope(JSTypeExpression expr) |
String |
JSDocInfo.getThrowsDescriptionForType(JSTypeExpression type)
Get the message for a given thrown type.
|
static JSTypeExpression |
JSTypeExpression.makeOptionalArg(JSTypeExpression expr)
Make the given type expression into an optional type expression,
if possible.
|
boolean |
JSDocInfoBuilder.recordBaseType(JSTypeExpression jsType)
Records a base type.
|
boolean |
JSDocInfoBuilder.recordDefineType(JSTypeExpression type)
Records the type of a define.
|
boolean |
JSDocInfoBuilder.recordEnumParameterType(JSTypeExpression type)
Records a parameter type to an enum.
|
boolean |
JSDocInfoBuilder.recordExtendedInterface(JSTypeExpression interfaceType)
Records an extended interface type.
|
boolean |
JSDocInfoBuilder.recordImplementedInterface(JSTypeExpression interfaceName)
Records an implemented interface.
|
boolean |
JSDocInfoBuilder.recordParameter(String parameterName,
JSTypeExpression type)
Records a typed parameter.
|
boolean |
JSDocInfoBuilder.recordReturnType(JSTypeExpression jsType)
Records a return type.
|
boolean |
JSDocInfoBuilder.recordThisType(JSTypeExpression type)
Records a type for
@this annotation. |
boolean |
JSDocInfoBuilder.recordThrowDescription(JSTypeExpression type,
String description)
Records a throw type's description.
|
boolean |
JSDocInfoBuilder.recordThrowType(JSTypeExpression type)
Records a thrown type.
|
boolean |
JSDocInfoBuilder.recordType(JSTypeExpression type)
Records a type.
|
boolean |
JSDocInfoBuilder.recordTypedef(JSTypeExpression type)
Records that the
JSDocInfo being built should be populated
with a typedef'd type. |
| Modifier and Type | Method and Description |
|---|---|
JSType |
JSTypeRegistry.evaluateTypeExpression(JSTypeExpression expr,
TypeIEnv<TypeI> scope) |
JSType |
JSTypeRegistry.evaluateTypeExpressionInGlobalScope(JSTypeExpression expr) |
Copyright © 2009-2017 Google. All Rights Reserved.