| Package | Description |
|---|---|
| gnu.bytecode |
Contains classes to generate, read,
write, and print Java bytecode in the form of
.class files. |
| gnu.expr |
Supports
Expression,
and various related classes need to compile programming languages. |
| gnu.kawa.lispexpr |
Support classes for compiling and running Lisp languages.
|
| gnu.kawa.reflect |
Contains classes to use reflection.
|
| gnu.kawa.xml |
Classes for using XML within Kawa.
|
| Modifier and Type | Method and Description |
|---|---|
Variable |
CodeAttr.addLocal (Type type)
Add a new local variable (in the current scope).
|
Variable |
CodeAttr.addLocal (Type type,
java.lang.String name)
Add a new local variable (in the current scope).
|
Variable |
Scope.addVariable (CodeAttr code,
Type type,
java.lang.String name) |
Variable |
Scope.firstVar () |
Variable |
CodeAttr.getArg (int index)
Get the index'th parameter.
|
Variable |
Scope.getVariable (int index)
Return a variable the scope, by numerical index.
|
Variable |
Scope.lookup (java.lang.String name)
Search by name for a Variable in this Scope (only).
|
Variable |
CodeAttr.lookup (java.lang.String name)
Search by name for a Variable
|
Variable |
Variable.nextVar () |
Variable |
VarEnumerator.nextVar ()
Return the next Variable in the Scope tree, or null if done.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Scope.addVariable (CodeAttr code,
Variable var) |
void |
Scope.addVariable (Variable var) |
void |
Scope.addVariableAfter (Variable prev,
Variable var) |
void |
Method.allocate_local (Variable local)
Deprecated.
|
void |
Method.compile_push_value (Variable var)
Deprecated.
|
void |
Method.compile_store_value (Variable var)
Deprecated.
|
void |
CodeAttr.emitCatchStart (Variable var) |
void |
CodeAttr.emitInc (Variable var,
short inc)
Emit an instruction to increment a variable by some amount.
|
void |
CodeAttr.emitLoad (Variable var)
Compile code to push the contents of a local variable onto the statck.
|
void |
CodeAttr.emitRet (Variable var)
Emit a 'ret' instruction.
|
void |
CodeAttr.emitStore (Variable var) |
void |
CodeAttr.emitStoreDefaultValue (Variable var)
Initialize a variable to zero or null, as appropriate.
|
void |
CodeAttr.emitWithCleanupCatch (Variable catchVar)
Called after a
body that has a cleanup clause. |
void |
Method.push_var (Variable var)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Scope.fixParamNames (java.util.HashMap<java.lang.String,Variable> map)
Fix duplicate names.
|
| Modifier and Type | Field and Description |
|---|---|
Variable |
Compilation.thisDecl |
| Modifier and Type | Method and Description |
|---|---|
Variable |
Declaration.allocateVariable (CodeAttr code) |
Variable |
Declaration.allocateVariable (CodeAttr code,
boolean autoPopScope) |
Variable |
LambdaExp.declareClosureEnv () |
Variable |
LambdaExp.declareThis (ClassType clas) |
Variable |
ConsumerTarget.getConsumerVariable () |
Variable |
Declaration.getVariable () |
| Modifier and Type | Method and Description |
|---|---|
static void |
CheckedTarget.emitCheckedCoerce (Compilation comp,
LambdaExp proc,
int argno,
Type stackType,
Type type,
Variable argValue) |
void |
TypeValue.emitIsInstance (Variable incoming,
Compilation comp,
Target target)
Emit code for incoming instanceof this_type.
|
void |
TypeValue.emitTestIf (Variable incoming,
Declaration decl,
Compilation comp)
Emit code for
if (incoming instanceof this_type) decl = incoming ....
|
| Constructor and Description |
|---|
ConsumerTarget (Variable consumer) |
ConsumerTarget (Variable consumer,
Type type) |
Declaration (Variable var) |
| Modifier and Type | Method and Description |
|---|---|
void |
LangObjType.emitIsInstance (Variable incoming,
Compilation comp,
Target target) |
void |
LangPrimType.emitIsInstance (Variable incoming,
Compilation comp,
Target target) |
void |
GenArrayType.emitIsInstance (Variable incoming,
Compilation comp,
Target target) |
void |
LangObjType.emitTestIf (Variable incoming,
Declaration decl,
Compilation comp) |
void |
LangPrimType.emitTestIf (Variable incoming,
Declaration decl,
Compilation comp) |
void |
GenArrayType.emitTestIf (Variable incoming,
Declaration decl,
Compilation comp) |
static void |
LangPrimType.emitTestIfNumber (Variable incoming,
Declaration decl,
Type type,
Compilation comp) |
| Modifier and Type | Method and Description |
|---|---|
static void |
InstanceOf.emitIsInstance (TypeValue type,
Variable incoming,
Compilation comp,
Target target) |
void |
OccurrenceType.emitIsInstance (Variable incoming,
Compilation comp,
Target target) |
void |
MappedArrayType.emitIsInstance (Variable incoming,
Compilation comp,
Target target) |
void |
OccurrenceType.emitTestIf (Variable incoming,
Declaration decl,
Compilation comp) |
void |
MappedArrayType.emitTestIf (Variable incoming,
Declaration decl,
Compilation comp) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
NodeType.emitCoerceOrNullMethod (Variable incoming,
Compilation comp) |
protected void |
ElementType.emitCoerceOrNullMethod (Variable incoming,
Compilation comp) |
protected void |
ProcessingInstructionType.emitCoerceOrNullMethod (Variable incoming,
Compilation comp) |
protected void |
AttributeType.emitCoerceOrNullMethod (Variable incoming,
Compilation comp) |
void |
NodeType.emitIsInstance (Variable incoming,
Compilation comp,
Target target) |
void |
XDataType.emitIsInstance (Variable incoming,
Compilation comp,
Target target) |
void |
NodeType.emitTestIf (Variable incoming,
Declaration decl,
Compilation comp) |
void |
XDataType.emitTestIf (Variable incoming,
Declaration decl,
Compilation comp) |