public final class JSTypes
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private JSType |
anyNumOrStr |
private RawNominalType |
arguments |
private RawNominalType |
arrayType |
private JSType |
booleanInstance |
private ObjectType |
booleanInstanceObjtype |
private RawNominalType |
builtinFunction |
private RawNominalType |
builtinObject |
private RawNominalType |
iObject |
private JSType |
numberInstance |
private ObjectType |
numberInstanceObjtype |
private JSType |
numberOrNumber |
private JSType |
regexpInstance |
private JSType |
stringInstance |
private ObjectType |
stringInstanceObjtype |
private JSType |
stringOrString |
Modifier | Constructor and Description |
---|---|
private |
JSTypes() |
private JSType numberInstance
private JSType booleanInstance
private JSType stringInstance
private ObjectType numberInstanceObjtype
private ObjectType booleanInstanceObjtype
private ObjectType stringInstanceObjtype
private JSType numberOrNumber
private JSType stringOrString
private JSType anyNumOrStr
private JSType regexpInstance
private RawNominalType arrayType
private RawNominalType builtinObject
private RawNominalType builtinFunction
private RawNominalType arguments
private RawNominalType iObject
public static JSTypes make()
public JSType fromFunctionType(FunctionType fn)
public NominalType getFunctionType()
public JSType looseTopFunction()
public JSType topFunction()
public JSType qmarkFunction()
public JSType getArrayInstance()
public NominalType getObjectType()
public NominalType getIObjectType()
public JSType getRegexpType()
JSType getNumberInstance()
JSType getBooleanInstance()
JSType getStringInstance()
ObjectType getNumberInstanceObjType()
ObjectType getBooleanInstanceObjType()
ObjectType getStringInstanceObjType()
public JSType getArgumentsArrayType()
public void setArgumentsType(RawNominalType arguments)
public void setFunctionType(RawNominalType builtinFunction)
public void setObjectType(RawNominalType builtinObject)
public void setArrayType(RawNominalType arrayType)
public void setIObjectType(RawNominalType iObject)
public void setRegexpInstance(JSType regexpInstance)
public void setNumberInstance(JSType t)
public void setBooleanInstance(JSType t)
public void setStringInstance(JSType t)
public boolean isNumberScalarOrObj(JSType t)
public boolean isStringScalarOrObj(JSType t)
public boolean isNumStrScalarOrObj(JSType t)