public class TypedLiteral extends Object implements TypeUsageCollectable, Dumpable
Modifier and Type | Class and Description |
---|---|
static class |
TypedLiteral.FormatHint |
static class |
TypedLiteral.LiteralType |
Modifier | Constructor and Description |
---|---|
protected |
TypedLiteral(TypedLiteral.LiteralType type,
InferredJavaType inferredJavaType,
Object value) |
protected TypedLiteral(TypedLiteral.LiteralType type, InferredJavaType inferredJavaType, Object value)
public void collectTypeUsages(TypeUsageCollector collector)
collectTypeUsages
in interface TypeUsageCollectable
public boolean getBoolValue()
public long getLongValue()
public int getIntValue()
public float getFloatValue()
public double getDoubleValue()
public Boolean getMaybeBoolValue()
public ConstantPoolEntryMethodHandle getMethodHandle()
public JavaTypeInstance getClassValue()
public Dumper dumpWithHint(Dumper d, TypedLiteral.FormatHint hint)
public static TypedLiteral getLong(long v)
public static TypedLiteral getInt(int v, InferredJavaType type)
public static TypedLiteral getInt(int v, RawJavaType type)
public static TypedLiteral getInt(int v)
public static TypedLiteral getShort(int v)
public static TypedLiteral getChar(int v)
public static TypedLiteral getBoolean(int v)
public static TypedLiteral getDouble(double v)
public static TypedLiteral getFloat(float v)
public static TypedLiteral getClass(JavaTypeInstance v)
public static TypedLiteral getString(String v)
public static TypedLiteral getNull()
public static TypedLiteral getConstantPoolEntryUTF8(ConstantPoolEntryUTF8 cpe)
public static TypedLiteral getConstantPoolEntry(ConstantPool cp, ConstantPoolEntry cpe)
public static TypedLiteral shrinkTo(TypedLiteral original, RawJavaType tgt)
public TypedLiteral.LiteralType getType()
public Object getValue()
public InferredJavaType getInferredJavaType()
public boolean checkIntegerUsage(RawJavaType rawType)
Copyright © 2011-2021. All Rights Reserved.