All Methods Static Methods Instance Methods Abstract Methods Concrete Methods
Modifier and Type |
Method and Description |
StringBuilder |
appendTo(StringBuilder builder) |
JSType |
autobox() |
boolean |
equals(Object o) |
static JSType |
fromObjectType(com.google.javascript.jscomp.newtypes.ObjectType obj) |
static JSType |
fromTypeVar(String typevarName) |
JSType |
getDeclaredProp(QualifiedName qname) |
JSType |
getEnumeratedType() |
protected abstract com.google.common.collect.ImmutableSet<EnumType> |
getEnums() |
FunctionType |
getFunType() |
FunctionType |
getFunTypeIfSingletonObj() |
JSType |
getIndexedType() |
JSType |
getIndexType() |
protected abstract int |
getMask() |
NominalType |
getNominalTypeIfSingletonObj() |
JSType |
getProp(QualifiedName qname) |
protected abstract String |
getTypeVar() |
boolean |
hasConstantProp(QualifiedName pname) |
int |
hashCode() |
boolean |
hasNonScalar() |
boolean |
hasProp(QualifiedName qname) |
boolean |
hasTypeVariable() |
static boolean |
haveCommonSubtype(JSType lhs,
JSType rhs) |
boolean |
isAnyFalsyType() |
boolean |
isAnyTruthyType() |
boolean |
isBoolean() |
boolean |
isBottom() |
boolean |
isConstructor() |
boolean |
isDict() |
boolean |
isEnumElement() |
boolean |
isEquivalentTo(TypeI type) |
boolean |
isFalseOrFalsy() |
boolean |
isFunctionType() |
boolean |
isFunctionWithProperties() |
boolean |
isInterface() |
boolean |
isInterfaceDefinition() |
boolean |
isLoose() |
boolean |
isNamespace() |
boolean |
isNonClassyObject() |
boolean |
isNonLooseSubtypeOf(JSType other) |
boolean |
isNullable() |
boolean |
isNullOrUndef() |
boolean |
isNumber() |
boolean |
isScalar() |
boolean |
isSingletonObj() |
boolean |
isString() |
boolean |
isStruct() |
boolean |
isSubtypeOf(TypeI other) |
boolean |
isTop() |
boolean |
isTrueOrTruthy() |
boolean |
isTypeVariable() |
boolean |
isUndefined() |
boolean |
isUnion() |
boolean |
isUnknown() |
boolean |
isUnknownType() |
static JSType |
join(JSType lhs,
JSType rhs) |
boolean |
mayBeDict() |
boolean |
mayBeStruct() |
boolean |
mayHaveProp(QualifiedName qname) |
static JSType |
meet(JSType lhs,
JSType rhs) |
JSType |
negate() |
static JSType |
plus(JSType lhs,
JSType rhs) |
JSType |
removeType(JSType other) |
TypeI |
restrictByNotNullOrUndefined() |
static void |
setCommonTypes(JSTypes commonTypes) |
JSType |
specialize(JSType other) |
JSType |
substituteGenerics(Map<String,JSType> concreteTypes) |
JSType |
substituteGenericsWithUnknown() |
JSType |
toBoolean() |
FunctionTypeI |
toMaybeFunctionType() |
ObjectTypeI |
toMaybeObjectType() |
String |
toString() |
boolean |
unifyWith(JSType other,
List<String> typeParameters,
com.google.common.collect.Multimap<String,JSType> typeMultimap)
Unify this , which may contain free type variables,
with other , a concrete subtype, modifying the supplied
typeMultimap to add any new template variable type bindings.
|
JSType |
withDeclaredProperty(QualifiedName qname,
JSType type,
boolean isConstant) |
JSType |
withFunction(FunctionType ft,
NominalType fnNominal) |
JSType |
withLoose()
Turns the class-less object of this type (if any) into a loose object
|
JSType |
withoutProperty(QualifiedName qname) |
JSType |
withProperty(QualifiedName qname,
JSType type) |
JSType |
withPropertyRequired(String pname) |