Package gnu.expr
Class Target
- java.lang.Object
-
- gnu.expr.Target
-
- Direct Known Subclasses:
ConditionalTarget,ConsumerTarget,IgnoreTarget,StackTarget
public abstract class Target extends Object
This represents where a compiler can put the result of an expression.
-
-
Field Summary
Fields Modifier and Type Field Description static TargetIgnoreA Target which means that the result is ignored.static TargetpushObjectA Target which means to push an Object on the JVM stack.
-
Constructor Summary
Constructors Constructor Description Target()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
Method Detail
-
getType
public abstract Type getType()
-
compileFromStack
public abstract void compileFromStack(Compilation comp, Type stackType)
-
-