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 -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTypedLiteral(TypedLiteral.LiteralType type, InferredJavaType inferredJavaType, Object value) -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckIntegerUsage(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) longstatic TypedLiteralgetNull()static TypedLiteralgetShort(int v) static TypedLiteralgetType()getValue()static TypedLiteralshrinkTo(TypedLiteral original, RawJavaType tgt) toString()
-
Constructor Details
-
TypedLiteral
protected TypedLiteral(TypedLiteral.LiteralType type, InferredJavaType inferredJavaType, Object value)
-
-
Method Details
-
collectTypeUsages
- Specified by:
collectTypeUsagesin interfaceTypeUsageCollectable
-
getBoolValue
public boolean getBoolValue() -
getLongValue
public long getLongValue() -
getIntValue
public int getIntValue() -
getFloatValue
public float getFloatValue() -
getDoubleValue
public double getDoubleValue() -
getMaybeBoolValue
-
getMethodHandle
-
getClassValue
-
dump
-
dumpWithHint
-
toString
-
getLong
-
getInt
-
getInt
-
getInt
-
getShort
-
getChar
-
getBoolean
-
getDouble
-
getFloat
-
getClass
-
getString
-
getNull
-
getConstantPoolEntryUTF8
-
getConstantPoolEntry
-
shrinkTo
-
getType
-
getValue
-
getInferredJavaType
-
checkIntegerUsage
-
equals
-