gnu.expr
Class Target
java.lang.Object
|
+--gnu.expr.Target
- Direct Known Subclasses:
- ConditionalTarget, IgnoreTarget, StackTarget
- public abstract class Target
- extends java.lang.Object
This represents where a compiler can put the result of an expression.
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Ignore
public static final Target Ignore
- A Target which means that the result is ignored.
pushObject
public static final Target pushObject
- A Target which means to push an Object on the JVM stack.
returnObject
public static final Target returnObject
Target
public Target()
getType
public abstract Type getType()
compileFromStack
public abstract void compileFromStack(Compilation comp,
Type stackType)
pushValue
public static Target pushValue(Type type)
- Return a Target to push a value of specified type on JCM stack.
returnValue
public static Target returnValue(Type type)
- A Target to return a value of specified type from a method/function.