Class TypedLiteral
java.lang.Object
org.benf.cfr.reader.bytecode.analysis.parse.literal.TypedLiteral
- All Implemented Interfaces:
Dumpable, TypeUsageCollectable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enum -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final InferredJavaTypeprivate final TypedLiteral.LiteralTypeprivate final Object -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTypedLiteral(TypedLiteral.LiteralType type, InferredJavaType inferredJavaType, Object value) -
Method Summary
Modifier and TypeMethodDescriptionprivate static Stringprivate static StringbooleancheckIntegerUsage(RawJavaType rawType) voidcollectTypeUsages(TypeUsageCollector collector) dumpWithHint(Dumper d, TypedLiteral.FormatHint hint) booleanstatic TypedLiteralgetBoolean(int v) booleanstatic TypedLiteralgetChar(int v) static TypedLiteralstatic TypedLiteralstatic TypedLiteralstatic TypedLiteralgetDouble(double v) doublestatic TypedLiteralgetFloat(float v) floatstatic TypedLiteralgetInt(int v) static TypedLiteralgetInt(int v, InferredJavaType type) static TypedLiteralgetInt(int v, RawJavaType type) intstatic TypedLiteralgetLong(long v) longprivate static TypedLiteralgetMethodHandle(ConstantPoolEntryMethodHandle methodHandle, ConstantPool cp) private static TypedLiteralgetMethodType(ConstantPoolEntryMethodType methodType, ConstantPool cp) static TypedLiteralgetNull()static TypedLiteralgetShort(int v) static TypedLiteralgetType()getValue()private static booleanprivate static StringintegerName(Object o, TypedLiteral.FormatHint formatHint) private static StringlongName(Object o, TypedLiteral.FormatHint formatHint) private static Stringprivate static Stringstatic TypedLiteralshrinkTo(TypedLiteral original, RawJavaType tgt) toString()
-
Field Details
-
inferredJavaType
-
type
-
value
-
-
Constructor Details
-
TypedLiteral
protected TypedLiteral(TypedLiteral.LiteralType type, InferredJavaType inferredJavaType, Object value)
-
-
Method Details
-
collectTypeUsages
- Specified by:
collectTypeUsagesin interfaceTypeUsageCollectable
-
integerName
-
getBoolValue
public boolean getBoolValue() -
getLongValue
public long getLongValue() -
getIntValue
public int getIntValue() -
getFloatValue
public float getFloatValue() -
getDoubleValue
public double getDoubleValue() -
getMaybeBoolValue
-
getMethodHandle
-
getClassValue
-
charName
-
boolName
-
hexTest
-
longName
-
methodHandleName
-
methodTypeName
-
dump
-
dumpWithHint
-
toString
-
getLong
-
getInt
-
getInt
-
getInt
-
getShort
-
getChar
-
getBoolean
-
getDouble
-
getFloat
-
getClass
-
getString
-
getNull
-
getMethodHandle
private static TypedLiteral getMethodHandle(ConstantPoolEntryMethodHandle methodHandle, ConstantPool cp) -
getMethodType
-
getConstantPoolEntryUTF8
-
getConstantPoolEntry
-
shrinkTo
-
getType
-
getValue
-
getInferredJavaType
-
checkIntegerUsage
-
equals
-