Modifier and Type | Field and Description |
---|---|
private com.google.common.collect.ImmutableSet<EnumType> |
enums |
private int |
mask |
private com.google.common.collect.ImmutableSet<ObjectType> |
objs |
private java.lang.String |
typeVar |
BOOLEAN, BOOLEAN_MASK, BOTTOM, BOTTOM_MASK, END_MASK, ENUM_MASK, FALSE_MASK, FALSE_TYPE, FALSY, FALSY_MASK, MAP_TO_UNKNOWN, mockToString, NON_SCALAR_MASK, NULL, NULL_MASK, NULL_OR_UNDEF, NUM_OR_STR, NUMBER, NUMBER_MASK, STRING, STRING_MASK, TOP, TOP_DICT, TOP_MASK, TOP_OBJECT, TOP_SCALAR, TOP_SCALAR_MASK, TOP_STRUCT, TRUE_MASK, TRUE_TYPE, TRUTHY, TRUTHY_MASK, TYPEVAR_MASK, UNDEFINED, UNDEFINED_MASK, UNKNOWN, UNKNOWN_MASK
Constructor and Description |
---|
UnionType(int mask) |
UnionType(int mask,
com.google.common.collect.ImmutableSet<ObjectType> objs,
java.lang.String typeVar,
com.google.common.collect.ImmutableSet<EnumType> enums) |
Modifier and Type | Method and Description |
---|---|
protected com.google.common.collect.ImmutableSet<EnumType> |
getEnums() |
protected int |
getMask() |
protected com.google.common.collect.ImmutableSet<ObjectType> |
getObjs() |
protected java.lang.String |
getTypeVar() |
appendTo, autobox, equals, fromEnum, fromFunctionType, fromObjectType, fromTypeVar, getDeclaredProp, getEnumeratedType, getFunType, getFunTypeIfSingletonObj, getIndexedType, getIndexType, getNominalTypeIfSingletonObj, getObjTypeIfSingletonObj, getProp, hasConstantProp, hashCode, hasNonScalar, hasProp, hasScalar, hasTypeVariable, haveCommonSubtype, isAnyFalsyType, isAnyTruthyType, isBoolean, isBottom, isConstructor, isDict, isEnumElement, isEquivalentTo, isFalseOrFalsy, isFunctionType, isFunctionWithProperties, isInterface, isInterfaceDefinition, isLoose, isNamespace, isNonClassyObject, isNonLooseSubtypeOf, isNullable, isNullOrUndef, isNumber, isScalar, isSingletonObj, isSingletonObjWithNull, isString, isStruct, isSubtypeOf, isSubtypeOf, isTop, isTrueOrTruthy, isTypeVariable, isUndefined, isUnion, isUnknown, isUnknownType, isValidType, join, mayBeDict, mayBeStruct, mayHaveProp, meet, negate, nullAcceptingJoin, plus, removeType, restrictByNotNullOrUndefined, setCommonTypes, specialize, substituteGenerics, substituteGenericsWithUnknown, toBoolean, toMaybeFunctionType, toMaybeObjectType, toString, unifyUnknowns, unifyWith, unifyWithSubtype, withDeclaredProperty, withFunction, withLoose, withoutProperty, withProperty, withPropertyRequired
private final int mask
private final com.google.common.collect.ImmutableSet<ObjectType> objs
private final java.lang.String typeVar
private final com.google.common.collect.ImmutableSet<EnumType> enums
UnionType(int mask, com.google.common.collect.ImmutableSet<ObjectType> objs, java.lang.String typeVar, com.google.common.collect.ImmutableSet<EnumType> enums)
UnionType(int mask)
protected com.google.common.collect.ImmutableSet<ObjectType> getObjs()
protected java.lang.String getTypeVar()
getTypeVar
in class JSType