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 |
---|---|
private static TernaryValue |
PeepholeFoldConstants.areStringsEqual(java.lang.String a,
java.lang.String b)
Returns whether two JS strings are equal.
|
private static TernaryValue |
PeepholeFoldConstants.compareAsNumbers(int op,
Node left,
Node right,
boolean useTypes)
The result of the comparison, or UNKNOWN if the
result could not be determined.
|
(package private) static TernaryValue |
PeepholeFoldConstants.evaluateComparison(int op,
Node left,
Node right,
boolean useTypes) |
(package private) static TernaryValue |
NodeUtil.getImpureBooleanValue(Node n)
Gets the boolean value of a node that represents a expression.
|
(package private) static TernaryValue |
NodeUtil.getPureBooleanValue(Node n)
Gets the boolean value of a node that represents a literal.
|
Modifier and Type | Method and Description |
---|---|
static TernaryValue |
TokenUtil.isStrWhiteSpaceChar(int c) |
Modifier and Type | Method and Description |
---|---|
abstract TernaryValue |
TernaryValue.and(TernaryValue that)
Gets the
and of this and that . |
static TernaryValue |
TernaryValue.forBoolean(boolean val)
Gets the TernaryValue for the given boolean.
|
abstract TernaryValue |
TernaryValue.not()
Gets the
not of this . |
abstract TernaryValue |
TernaryValue.or(TernaryValue that)
Gets the
or of this and that . |
TernaryValue |
UnknownType.testForEquality(JSType that) |
TernaryValue |
EnumType.testForEquality(JSType that) |
TernaryValue |
NumberType.testForEquality(JSType that) |
TernaryValue |
ArrowType.testForEquality(JSType that) |
TernaryValue |
AllType.testForEquality(JSType that) |
TernaryValue |
JSType.testForEquality(JSType that)
Compares
this and that . |
TernaryValue |
StringType.testForEquality(JSType that) |
TernaryValue |
BooleanType.testForEquality(JSType that) |
TernaryValue |
VoidType.testForEquality(JSType that) |
TernaryValue |
ProxyObjectType.testForEquality(JSType that) |
TernaryValue |
UnionType.testForEquality(JSType that) |
TernaryValue |
NullType.testForEquality(JSType that) |
TernaryValue |
EnumElementType.testForEquality(JSType that) |
TernaryValue |
ObjectType.testForEquality(JSType that) |
(package private) TernaryValue |
JSType.testForEqualityHelper(JSType aType,
JSType bType) |
static TernaryValue |
TernaryValue.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TernaryValue[] |
TernaryValue.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
abstract TernaryValue |
TernaryValue.xor(TernaryValue that)
Gets the
xor of this and that . |
Modifier and Type | Method and Description |
---|---|
abstract TernaryValue |
TernaryValue.and(TernaryValue that)
Gets the
and of this and that . |
abstract TernaryValue |
TernaryValue.or(TernaryValue that)
Gets the
or of this and that . |
abstract TernaryValue |
TernaryValue.xor(TernaryValue that)
Gets the
xor of this and that . |