Module org.htmlunit.corejs
Class PrimitiveClassTypeInfo
java.lang.Object
org.htmlunit.corejs.javascript.lc.type.impl.TypeInfoBase
org.htmlunit.corejs.javascript.lc.type.impl.ClassTypeInfo
org.htmlunit.corejs.javascript.lc.type.impl.PrimitiveClassTypeInfo
- All Implemented Interfaces:
TypeInfo
-
Field Summary
Fields inherited from interface org.htmlunit.corejs.javascript.lc.type.TypeInfo
BIG_INT, BOOLEAN, BYTE, CHARACTER, DATE, DOUBLE, FLOAT, INT, LONG, NONE, NUMBER, OBJECT, OBJECT_ARRAY, PRIMITIVE_BOOLEAN, PRIMITIVE_BYTE, PRIMITIVE_CHARACTER, PRIMITIVE_DOUBLE, PRIMITIVE_FLOAT, PRIMITIVE_INT, PRIMITIVE_LONG, PRIMITIVE_SHORT, PRIMITIVE_VOID, RAW_CLASS, RAW_CONSUMER, RAW_ENUM_SET, RAW_FUNCTION, RAW_LIST, RAW_MAP, RAW_OPTIONAL, RAW_PREDICATE, RAW_SET, RAW_SUPPLIER, RUNNABLE, SHORT, STRING, STRING_ARRAY, VOID -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.htmlunit.corejs.javascript.lc.type.impl.ClassTypeInfo
asClass, equals, hashCode, toStringMethods inherited from class org.htmlunit.corejs.javascript.lc.type.impl.TypeInfoBase
newArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.htmlunit.corejs.javascript.lc.type.TypeInfo
consolidate, enumConstants, getComponentType, getTypeTag, isArray, isEnum, isFunctionalInterface, isInstance, isInterface, isNot, isObjectExact, isString, param, shouldReplace
-
Constructor Details
-
PrimitiveClassTypeInfo
-
-
Method Details
-
is
- Specified by:
isin interfaceTypeInfo- Overrides:
isin classClassTypeInfo- Returns:
- true if this TypeInfo represents the same class as the
Classparameter, false otherwise
-
isPrimitive
public boolean isPrimitive()- See Also:
-
createDefaultValue
-
isVoid
public boolean isVoid()- Returns:
- true if this TypeInfo represents
Voidclass orvoidclass
-
isBoolean
public boolean isBoolean()- Returns:
- true if this TypeInfo represents
Booleanclass orbooleanclass
-
isNumber
public boolean isNumber()- Returns:
- true if this TypeInfo represents a type assignable to
Numberclass - See Also:
-
isByte
public boolean isByte()- Returns:
- true if this TypeInfo represents
Byteclass orbyteclass
-
isShort
public boolean isShort()- Returns:
- true if this TypeInfo represents
Shortclass orshortclass
-
isInt
public boolean isInt()- Returns:
- true if this TypeInfo represents
Integerclass orintclass
-
isLong
public boolean isLong()- Returns:
- true if this TypeInfo represents
Longclass orlongclass
-
isFloat
public boolean isFloat()- Returns:
- true if this TypeInfo represents
Floatclass orfloatclass
-
isDouble
public boolean isDouble()- Returns:
- true if this TypeInfo represents
Doubleclass ordoubleclass
-
isCharacter
public boolean isCharacter()- Returns:
- true if this TypeInfo represents
Characterclass orcharclass
-
isAssignableFrom
- Returns:
trueif the caller TypeInfo represents the super class of the class represented byanotherTypeInfo- See Also:
-