Module org.htmlunit.corejs
Class BasicClassTypeInfo
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.BasicClassTypeInfo
- 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
Modifier and TypeMethodDescriptionbooleanbooleanisByte()booleanbooleanisDouble()booleanisFloat()booleanisInt()booleanisLong()booleanbooleanisShort()booleanisString()booleanisVoid()booleannot standard, made only because return type ofArray.newInstance(Class, int)isObjectinstead of something representing an arrayMethods inherited from class org.htmlunit.corejs.javascript.lc.type.impl.ClassTypeInfo
asClass, equals, hashCode, is, 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, createDefaultValue, enumConstants, getComponentType, getTypeTag, isArray, isAssignableFrom, isEnum, isFunctionalInterface, isInstance, isInterface, isNot, isNumber, isPrimitive, param
-
Constructor Details
-
BasicClassTypeInfo
-
-
Method Details
-
isVoid
public boolean isVoid()- Returns:
- true if this TypeInfo represents
Voidclass orvoidclass
-
isBoolean
public boolean isBoolean()- Returns:
- true if this TypeInfo represents
Booleanclass orbooleanclass
-
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
-
isString
public boolean isString()- Returns:
- true if this TypeInfo represents
Stringclass
-
isObjectExact
public boolean isObjectExact()- Returns:
- true if this TypeInfo represents
Objectclass
-
shouldReplace
public boolean shouldReplace()not standard, made only because return type ofArray.newInstance(Class, int)isObjectinstead of something representing an array- Returns:
trueif this type contains too little information (e.g. beingTypeInfo.NONE) and should be replaced by actual object type,falseotherwise
-