public enum NoTypeInfo extends Enum<NoTypeInfo> implements TypeInfo
NoTypeInfo is always singleton.TypeInfo.NONE| Enum Constant and Description |
|---|
INSTANCE |
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| Modifier and Type | Method and Description |
|---|---|
void |
append(TypeFormatContext ctx,
StringBuilder builder) |
Class<?> |
asClass()
|
void |
collectComponentClass(Consumer<Class<?>> collector) |
boolean |
isAssignableFrom(TypeInfo another)
Object class is assignable from any class |
boolean |
isInstance(Object o) |
boolean |
shouldConvert() |
String |
toString() |
static NoTypeInfo |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NoTypeInfo[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOfconsolidate, createDefaultValue, enumConstants, getComponentType, getTypeTag, is, isArray, isBoolean, isByte, isCharacter, isDouble, isEnum, isFloat, isFunctionalInterface, isInt, isInterface, isLong, isNot, isNumber, isObjectExact, isPrimitive, isShort, isString, isVoid, newArray, parampublic static final NoTypeInfo INSTANCE
public static NoTypeInfo[] values()
for (NoTypeInfo c : NoTypeInfo.values()) System.out.println(c);
public static NoTypeInfo valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic boolean shouldConvert()
shouldConvert in interface TypeInfopublic String toString()
toString in interface TypeInfotoString in class Enum<NoTypeInfo>TypeInfo.append(TypeFormatContext, StringBuilder)public void append(TypeFormatContext ctx, StringBuilder builder)
public void collectComponentClass(Consumer<Class<?>> collector)
collectComponentClass in interface TypeInfopublic boolean isAssignableFrom(TypeInfo another)
Object class is assignable from any classisAssignableFrom in interface TypeInfotrue if the caller TypeInfo represents the super class of the class
represented by another TypeInfoClass.isAssignableFrom(Class)public boolean isInstance(Object o)
isInstance in interface TypeInfoo is an instance of this class represented by the caller TypeInfoClass.isInstance(Object)Copyright © 2025 HtmlUnit. All rights reserved.