| java.lang.Object gnu.expr.Expression
All known Subclasses: gnu.expr.BeginExp, gnu.expr.ReferenceExp, gnu.expr.SynchronizedExp, gnu.expr.Package, gnu.expr.SetExp, gnu.expr.BlockExp, gnu.expr.QuoteExp, gnu.expr.ExitExp, gnu.expr.IncrementExp, gnu.expr.LoopExp, gnu.expr.ErrorExp, gnu.expr.IfExp, gnu.expr.CopyArgument, gnu.expr.CheckContract, gnu.expr.TryExp, gnu.expr.ScopeExp, gnu.expr.ApplyExp,
Expression | abstract public class Expression implements Printable(Code) | | Abstract class for syntactic forms that evaluate to a value.
Scheme S-expressions get re-written to these before evaluation.
author: Per Bothner |
Method Summary | |
abstract public void | compile(Compilation comp, Target target) | final public void | compile(Compilation comp, Type type) | final public void | compileNotePosition(Compilation comp, Target target) Compile, but take note of line number. | final public void | compileWithPosition(Compilation comp, Target target) Same as compile, but emit line number beforehard. | public Object | eval(Environment env) | public void | eval(Environment env, CallContext ctx) | public Branchable | getBranchable() | final public int | getColumn() | final public String | getFile() | public boolean | getFlag(int flag) | public int | getFlags() | final public int | getLine() Get the line number of (the start of) this Expression.
The "first" line is line 1. | public Type | getType() Return the Type used to represent the values of this Expression. | public boolean | hasLocation() | public static Expression | makeWhile(Object cond, Object body, Parser parser) Helper method to create a `while' statement. | final public void | print(java.io.PrintWriter ps) | abstract public void | print(OutPort ps) | public void | printLineColumn(OutPort out) Print line and column number if specified. | final public void | setFile(String filename) | public void | setFlag(boolean setting, int flag) | public void | setFlag(int flag) | final public Expression | setLine(Expression old) | final public void | setLine(int lineno, int colno) | final public void | setLine(int lineno) | protected Expression | walk(ExpWalker walker) | protected void | walkChildren(ExpWalker walker) |
NEXT_AVAIL_FLAG | final protected static int NEXT_AVAIL_FLAG(Code) | | |
flags | protected int flags(Code) | | |
compileNotePosition | final public void compileNotePosition(Compilation comp, Target target)(Code) | | Compile, but take note of line number.
|
compileWithPosition | final public void compileWithPosition(Compilation comp, Target target)(Code) | | Same as compile, but emit line number beforehard.
|
getColumn | final public int getColumn()(Code) | | |
getFlag | public boolean getFlag(int flag)(Code) | | |
getFlags | public int getFlags()(Code) | | |
getLine | final public int getLine()(Code) | | Get the line number of (the start of) this Expression.
The "first" line is line 1.
|
getType | public Type getType()(Code) | | Return the Type used to represent the values of this Expression.
|
hasLocation | public boolean hasLocation()(Code) | | |
printLineColumn | public void printLineColumn(OutPort out)(Code) | | Print line and column number if specified.
This is a helper routineintended for use by print(OutPort).
|
setFlag | public void setFlag(boolean setting, int flag)(Code) | | |
setFlag | public void setFlag(int flag)(Code) | | |
setLine | final public void setLine(int lineno, int colno)(Code) | | |
setLine | final public void setLine(int lineno)(Code) | | |
|
|