| Package | Description |
|---|---|
| com.google.javascript.jscomp |
Provides the core compiler and its public API.
|
| 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 |
|---|---|
static JSTypeExpression |
NodeUtil.getDeclaredTypeExpression(Node declaration)
Return declared JSDoc type for the given name declaration, or null if none present.
|
| 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.getLendsName()
Gets the name we're lending to in a
@lends annotation. |
JSTypeExpression |
JSDocInfo.getParameterType(java.lang.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.
|
JSTypeExpression |
JSTypeExpression.replaceNamesWithUnknownType(java.util.Set<java.lang.String> names)
Replaces given names in this type expression with unknown
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<JSTypeExpression> |
JSDocInfo.getExtendedInterfaces()
Returns the interfaces extended by an interface
|
java.util.List<JSTypeExpression> |
JSDocInfo.getImplementedInterfaces()
Returns the types specified by the
@implements annotation. |
com.google.common.collect.ImmutableMap<java.lang.String,JSTypeExpression> |
JSDocInfo.getTemplateTypes() |
java.util.List<JSTypeExpression> |
JSDocInfo.getThrownTypes()
Returns the list of thrown types.
|
java.util.Collection<JSTypeExpression> |
JSDocInfo.getTypeExpressions()
Returns a collection of all JSTypeExpressions that are a part of this JSDocInfo.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
JSDocInfoBuilder.changeBaseType(JSTypeExpression jsType)
Changes a base type, even if one has already been set on currentInfo.
|
JSDocInfo |
JSDocInfo.cloneWithNewType(boolean cloneTypeNodes,
JSTypeExpression typeExpression) |
static JSDocInfoBuilder |
JSDocInfoBuilder.copyFromWithNewType(JSDocInfo info,
JSTypeExpression typeExpression) |
java.lang.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.
|
static JSDocInfoBuilder |
JSDocInfoBuilder.maybeCopyFromWithNewType(JSDocInfo info,
JSTypeExpression typeExpression)
Returns a JSDocInfoBuilder that contains a copy of the given JSDocInfo in which only the
@type field of the JSDocInfo is replaced with the given typeExpression. |
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.recordLends(JSTypeExpression name)
Records that we're lending to another name.
|
boolean |
JSDocInfoBuilder.recordParameter(java.lang.String parameterName,
JSTypeExpression type)
Records a typed parameter.
|
boolean |
JSDocInfoBuilder.recordReturnType(JSTypeExpression jsType)
Records a return type.
|
boolean |
JSDocInfoBuilder.recordTemplateTypeName(java.lang.String name,
JSTypeExpression bound) |
boolean |
JSDocInfoBuilder.recordThisType(JSTypeExpression type)
Records a type for
@this annotation. |
boolean |
JSDocInfoBuilder.recordThrowDescription(JSTypeExpression type,
java.lang.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,
StaticTypedScope scope) |
JSType |
JSTypeRegistry.evaluateTypeExpressionInGlobalScope(JSTypeExpression expr) |
Copyright © 2009-2020 Google. All Rights Reserved.