public class Result extends Object
Result class stores result of execution some operation and command for VM which operation must be
next.| Constructor and Description |
|---|
Result(ReturnType returnType)
Create an instance of
Result for operation which didn't return any value. |
Result(ReturnType returnType,
Object returnValue)
Create an instance of
Result for operation which returned value. |
| Modifier and Type | Method and Description |
|---|---|
ReturnType |
getReturnType() |
Object |
getValue() |
void |
setReturnType(ReturnType returnType) |
public Result(ReturnType returnType)
Result for operation which didn't return any value. Initialized with order to
compiler what to do after current operation.returnType - Order to compilerpublic Result(ReturnType returnType, Object returnValue)
Result for operation which returned value. Initialized with order to compiler
what to do after current operation.returnType - Order to compilerreturnValue - Result of execution of operation.public ReturnType getReturnType()
public Object getValue()
public void setReturnType(ReturnType returnType)
returnType - the returnType to setCopyright © 2004–2019 OpenL Tablets. All rights reserved.