| Package | Description |
|---|---|
| com.google.javascript.rhino.jstype |
Provides abstractions to represent types in JavaScript.
|
| Modifier and Type | Method and Description |
|---|---|
protected static boolean |
JSType.checkConstructorImplicitMatch(FunctionType rightType,
FunctionType leftType,
JSType.ImplCache implicitImplCache)
check if functionType implicitly implements interfaceType
|
protected static boolean |
JSType.checkObjectImplicitMatch(ObjectType rightType,
FunctionType leftType,
JSType.ImplCache implicitImplCache)
check if the rightType (an object type)
is compatible with the leftType (must be an interface function type)
|
protected static boolean |
JSType.implicitMatch(JSType rightType,
JSType leftType,
JSType.ImplCache implicitImplCache)
perform structural interface matching to see if the second argument type
implicitly implements the first argument type.
|
protected boolean |
UnknownType.isSubtype(JSType that,
JSType.ImplCache implicitImplCache) |
protected boolean |
NoObjectType.isSubtype(JSType that,
JSType.ImplCache implicitImplCache) |
protected boolean |
NoType.isSubtype(JSType that,
JSType.ImplCache implicitImplCache) |
protected boolean |
TemplatizedType.isSubtype(JSType that,
JSType.ImplCache implicitImplCache) |
protected boolean |
RecordType.isSubtype(JSType that,
JSType.ImplCache implicitImplCache) |
protected boolean |
ProxyObjectType.isSubtype(JSType that,
JSType.ImplCache implicitImplCache) |
protected boolean |
EnumType.isSubtype(JSType that,
JSType.ImplCache implicitImplCache) |
protected boolean |
EnumElementType.isSubtype(JSType that,
JSType.ImplCache implicitImplCache) |
protected boolean |
UnionType.isSubtype(JSType that,
JSType.ImplCache implicitImplCache) |
protected boolean |
PrototypeObjectType.isSubtype(JSType that,
JSType.ImplCache implicitImplCache) |
protected boolean |
FunctionType.isSubtype(JSType that,
JSType.ImplCache implicitImplCache) |
protected boolean |
JSType.isSubtype(JSType that,
JSType.ImplCache implicitImplCache)
checking isSubtype with structural interface matching
|
protected boolean |
FunctionType.treatThisTypesAsCovariant(FunctionType other,
JSType.ImplCache implicitImplCache) |
Copyright © 2009-2015 Google. All Rights Reserved.