Module org.htmlunit.corejs
Enum Class NoTypeInfo
- All Implemented Interfaces:
Serializable,Comparable<NoTypeInfo>,Constable,TypeInfo
Declaring it as an enum ensures that
NoTypeInfo is always singleton.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
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 -
Method Summary
Modifier and TypeMethodDescriptionClass<?>asClass()booleanisAssignableFrom(TypeInfo another) Objectclass is assignable from any classbooleanisInstance(Object o) booleantoString()static NoTypeInfoReturns the enum constant of this class with the specified name.static NoTypeInfo[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOfMethods inherited from interface org.htmlunit.corejs.javascript.lc.type.TypeInfo
consolidate, createDefaultValue, enumConstants, getComponentType, getTypeTag, is, isArray, isBoolean, isByte, isCharacter, isDouble, isEnum, isFloat, isFunctionalInterface, isInt, isInterface, isLong, isNot, isNumber, isObjectExact, isPrimitive, isShort, isString, isVoid, newArray, param
-
Enum Constant Details
-
INSTANCE
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
asClass
Description copied from interface:TypeInfo -
shouldReplace
public boolean shouldReplace()- Specified by:
shouldReplacein interfaceTypeInfo- Returns:
trueif this type contains too little information (e.g. beingTypeInfo.NONE) and should be replaced by actual object type,falseotherwise
-
toString
- Specified by:
toStringin interfaceTypeInfo- Overrides:
toStringin classEnum<NoTypeInfo>- See Also:
-
toString
-
isAssignableFrom
Objectclass is assignable from any class- Specified by:
isAssignableFromin interfaceTypeInfo- Returns:
trueif the caller TypeInfo represents the super class of the class represented byanotherTypeInfo- See Also:
-
isInstance
- Specified by:
isInstancein interfaceTypeInfo- Returns:
- true if
ois an instance of this class represented by the caller TypeInfo - See Also:
-