gnu.expr

Class Target

public abstract class Target extends Object

This represents where a compiler can put the result of an expression.
Field Summary
static TargetIgnore
A Target which means that the result is ignored.
static TargetpushObject
A Target which means to push an Object on the JVM stack.
Method Summary
abstract voidcompileFromStack(Compilation comp, Type stackType)
abstract TypegetType()
static TargetpushValue(Type type)
Return a Target to push a value of specified type on JCM stack.

Field Detail

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.

Method Detail

compileFromStack

public abstract void compileFromStack(Compilation comp, Type stackType)

getType

public abstract Type getType()

pushValue

public static Target pushValue(Type type)
Return a Target to push a value of specified type on JCM stack.