Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

gnu.expr
Class Target  view Target download Target.java

java.lang.Object
  extended bygnu.expr.Target
Direct Known Subclasses:
ConditionalTarget, ConsumerTarget, IgnoreTarget, SeriesTarget, StackTarget

public abstract class Target
extends java.lang.Object

This represents where a compiler can put the result of an expression.


Field Summary
static Target Ignore
          A Target which means that the result is ignored.
static Target pushObject
          A Target which means to push an Object on the JVM stack.
 
Constructor Summary
Target()
           
 
Method Summary
abstract  void compileFromStack(Compilation comp, gnu.bytecode.Type stackType)
           
abstract  gnu.bytecode.Type getType()
           
static Target pushValue(gnu.bytecode.Type type)
          Return a Target to push a value of specified type on JCM stack.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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.

Constructor Detail

Target

public Target()
Method Detail

getType

public abstract gnu.bytecode.Type getType()

compileFromStack

public abstract void compileFromStack(Compilation comp,
                                      gnu.bytecode.Type stackType)

pushValue

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