Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
public class SetExp
extends AccessExp
Field Summary | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int |
Fields inherited from class gnu.expr.Expression | |
NEXT_AVAIL_FLAG , flags , noExpressions |
Constructor Summary | |
| |
|
Method Summary | |
void |
|
void |
|
boolean |
|
Expression |
|
Type |
|
boolean | |
boolean |
|
boolean | |
static SetExp |
|
static SetExp |
|
protected boolean | |
void | |
void |
|
void |
|
void |
|
void |
|
String |
|
protected Expression | |
protected void |
|
Methods inherited from class gnu.expr.AccessExp | |
contextDecl , getBinding , getName , getSimpleName , getSymbol , setBinding , setContextDecl , string_name |
Methods inherited from class gnu.expr.Expression | |
apply , apply0 , compile , compile , compile , compileButFirst , compileNotePosition , compileWithPosition , compileWithPosition , eval , eval , getColumnNumber , getFileName , getFlag , getFlags , getLineNumber , getPublicId , getSystemId , getType , inline , isStableSourceLocation , makeWhile , match0 , mustCompile , print , print , printLineColumn , setFile , setFlag , setFlag , setLine , setLine , setLine , setLine , setLocation , side_effects , toString , valueIfConstant , walk , walkChildren |
Methods inherited from class gnu.mapping.Procedure0 | |
apply0 , apply1 , apply2 , apply3 , apply4 , applyN , numArgs |
Methods inherited from class gnu.mapping.Procedure | |
apply , apply , apply0 , apply1 , apply2 , apply3 , apply4 , applyN , check0 , check1 , check2 , check3 , check4 , checkArgCount , checkN , getSetter , getSourceLocation , match0 , match1 , match2 , match3 , match4 , matchN , maxArgs , minArgs , numArgs , set0 , set1 , setN , setSetter , setSourceLocation , toString |
Methods inherited from class gnu.mapping.PropertySet | |
getName , getProperty , getSymbol , removeProperty , setName , setProperty , setProperty , setSymbol |
public static final int DEFINING_FLAG
- Field Value:
- 1
public static final int GLOBAL_FLAG
- Field Value:
- 2
public static final int HAS_VALUE
- Field Value:
- 32
public static final int PREFER_BINDING2
- Field Value:
- 4
public static final int PROCEDURE
- Field Value:
- 8
public static final int SET_IF_UNBOUND
- Field Value:
- 16
public void apply(CallContext ctx) throws Throwable
Evaluate the expression. This is named apply rather than eval so it is compatible with the full-tail-call calling convention, and we can stash an Expression in CallContext's proc field. FIXME - are we making use of this?
- Overrides:
- apply in interface Expression
public void compile(Compilation comp, Target target)
- Overrides:
- compile in interface Expression
public final boolean getHasValue()
True if evaluating the SetExp yields the value of the RHS.
public final Expression getNewValue()
Get the Expression for calculating the new ("right-hand") value.
public final Type getType()
Return the Type used to represent the values of this Expression.
- Overrides:
- getType in interface Expression
public final boolean isDefining()
public final boolean isFuncDef()
True if this is a functon definition ("defun").
public final boolean isSetIfUnbound()
public final void setDefining(boolean value)
public final void setFuncDef(boolean value)
public final void setHasValue(boolean value)
public final void setSetIfUnbound(boolean value)
protected void walkChildren(ExpWalker walker)
- Overrides:
- walkChildren in interface Expression