Package io.quarkus.gizmo
Class ResultHandle
- java.lang.Object
-
- io.quarkus.gizmo.ResultHandle
-
- Direct Known Subclasses:
AssignableResultHandle
public class ResultHandle extends java.lang.ObjectRepresents the result of an operation. Generally this will be the result of a method that has been stored in a local variable, but it can also be other things, such as a read from a field.These result handles are tied to a specific
MethodCreator.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classResultHandle.ResultType
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Objectconstantprivate intno(package private) static ResultHandleNULLprivate BytecodeCreatorImplownerprivate ResultHandle.ResultTyperesultTypeprivate java.lang.Stringtype
-
Constructor Summary
Constructors Constructor Description ResultHandle(java.lang.String type, BytecodeCreatorImpl owner)ResultHandle(java.lang.String type, BytecodeCreatorImpl owner, java.lang.Object constant)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetConstant()(package private) intgetNo()(package private) BytecodeCreatorImplgetOwner()ResultHandle.ResultTypegetResultType()(package private) java.lang.StringgetType()(package private) voidmarkSingleUse()voidsetNo(int no)java.lang.StringtoString()private voidverifyType(java.lang.String current)
-
-
-
Field Detail
-
NULL
static final ResultHandle NULL
-
no
private int no
-
type
private final java.lang.String type
-
owner
private final BytecodeCreatorImpl owner
-
constant
private final java.lang.Object constant
-
resultType
private ResultHandle.ResultType resultType
-
-
Constructor Detail
-
ResultHandle
ResultHandle(java.lang.String type, BytecodeCreatorImpl owner)
-
ResultHandle
ResultHandle(java.lang.String type, BytecodeCreatorImpl owner, java.lang.Object constant)
-
-
Method Detail
-
verifyType
private void verifyType(java.lang.String current)
-
setNo
public void setNo(int no)
-
getResultType
public ResultHandle.ResultType getResultType()
-
getNo
int getNo()
-
markSingleUse
void markSingleUse()
-
getType
java.lang.String getType()
-
getOwner
BytecodeCreatorImpl getOwner()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getConstant
public java.lang.Object getConstant()
-
-