| Package | Description |
|---|---|
| com.google.javascript.jscomp.parsing |
Provides utilities to help with parsing JSDoc annotations and performing AST
transformations.
|
| com.google.javascript.rhino |
The core AST from Rhino.
|
| Modifier and Type | Method and Description |
|---|---|
static Node.TypeDeclarationNode |
TypeDeclarationsIRFactory.anyType()
Equivalent to the UNKNOWN type in Closure, expressed with
{?} |
static Node.TypeDeclarationNode |
TypeDeclarationsIRFactory.arrayType(Node elementType)
Represents an array type.
|
static Node.TypeDeclarationNode |
TypeDeclarationsIRFactory.booleanType() |
static Node.TypeDeclarationNode |
TypeDeclarationsIRFactory.convert(JSTypeExpression typeExpr) |
static Node.TypeDeclarationNode |
TypeDeclarationsIRFactory.convertTypeNodeAST(Node n)
The root of a JSTypeExpression is very different from an AST node, even
though we use the same Java class to represent them.
|
static Node.TypeDeclarationNode |
TypeDeclarationsIRFactory.functionType(Node returnType,
LinkedHashMap<String,Node.TypeDeclarationNode> parameters,
String restName,
Node.TypeDeclarationNode restType)
Represents a function type.
|
static Node.TypeDeclarationNode |
TypeDeclarationsIRFactory.namedType(Iterable<String> segments)
Produces a tree structure similar to the Rhino AST of a qualified name
expression, under a top-level NAMED_TYPE node.
|
static Node.TypeDeclarationNode |
TypeDeclarationsIRFactory.namedType(String typeName)
Splits a '.' separated qualified name into a tree of type segments.
|
static Node.TypeDeclarationNode |
TypeDeclarationsIRFactory.nullable(Node.TypeDeclarationNode type)
We assume that types are non-nullable by default.
|
static Node.TypeDeclarationNode |
TypeDeclarationsIRFactory.numberType() |
static Node.TypeDeclarationNode |
TypeDeclarationsIRFactory.optionalParameter(Node.TypeDeclarationNode parameterType)
Represents a function parameter that is optional.
|
static Node.TypeDeclarationNode |
TypeDeclarationsIRFactory.parameterizedType(Node.TypeDeclarationNode baseType,
Iterable<Node.TypeDeclarationNode> typeParameters)
Represents a parameterized, or generic, type.
|
static Node.TypeDeclarationNode |
TypeDeclarationsIRFactory.recordType(LinkedHashMap<String,Node.TypeDeclarationNode> properties)
Represents a structural type.
|
static Node.TypeDeclarationNode |
TypeDeclarationsIRFactory.restParams(Node type)
Represents a function parameter type which may be repeated.
|
static Node.TypeDeclarationNode |
TypeDeclarationsIRFactory.stringType() |
static Node.TypeDeclarationNode |
TypeDeclarationsIRFactory.undefinedType() |
static Node.TypeDeclarationNode |
TypeDeclarationsIRFactory.unionType(Iterable<Node.TypeDeclarationNode> options)
Represents a union type, which can be one of the given types.
|
static Node.TypeDeclarationNode |
TypeDeclarationsIRFactory.unionType(Node.TypeDeclarationNode... options) |
static Node.TypeDeclarationNode |
TypeDeclarationsIRFactory.voidType() |
| Modifier and Type | Method and Description |
|---|---|
static Node.TypeDeclarationNode |
TypeDeclarationsIRFactory.functionType(Node returnType,
LinkedHashMap<String,Node.TypeDeclarationNode> parameters,
String restName,
Node.TypeDeclarationNode restType)
Represents a function type.
|
static Node.TypeDeclarationNode |
TypeDeclarationsIRFactory.nullable(Node.TypeDeclarationNode type)
We assume that types are non-nullable by default.
|
static Node.TypeDeclarationNode |
TypeDeclarationsIRFactory.optionalParameter(Node.TypeDeclarationNode parameterType)
Represents a function parameter that is optional.
|
static Node.TypeDeclarationNode |
TypeDeclarationsIRFactory.parameterizedType(Node.TypeDeclarationNode baseType,
Iterable<Node.TypeDeclarationNode> typeParameters)
Represents a parameterized, or generic, type.
|
static Node.TypeDeclarationNode |
TypeDeclarationsIRFactory.unionType(Node.TypeDeclarationNode... options) |
| Modifier and Type | Method and Description |
|---|---|
static Node.TypeDeclarationNode |
TypeDeclarationsIRFactory.functionType(Node returnType,
LinkedHashMap<String,Node.TypeDeclarationNode> parameters,
String restName,
Node.TypeDeclarationNode restType)
Represents a function type.
|
static Node.TypeDeclarationNode |
TypeDeclarationsIRFactory.parameterizedType(Node.TypeDeclarationNode baseType,
Iterable<Node.TypeDeclarationNode> typeParameters)
Represents a parameterized, or generic, type.
|
static Node.TypeDeclarationNode |
TypeDeclarationsIRFactory.recordType(LinkedHashMap<String,Node.TypeDeclarationNode> properties)
Represents a structural type.
|
static Node.TypeDeclarationNode |
TypeDeclarationsIRFactory.unionType(Iterable<Node.TypeDeclarationNode> options)
Represents a union type, which can be one of the given types.
|
| Modifier and Type | Method and Description |
|---|---|
Node.TypeDeclarationNode |
Node.getDeclaredTypeExpression()
Returns the syntactical type specified on this node.
|
Copyright © 2009-2015 Google. All Rights Reserved.