kawa.standard
Class require

java.lang.Object
  |
  +--gnu.expr.Declaration
        |
        +--kawa.lang.Syntax
              |
              +--kawa.standard.require

public class require
extends Syntax


Fields inherited from class gnu.expr.Declaration
context, firstCall, flags, id, type, value
 
Constructor Summary
require()
           
 
Method Summary
static java.lang.Object allocate(ClassType type, Environment env)
           
 Expression rewriteForm(gnu.kawa.util.Pair form, Translator tr)
           
 boolean scanForDefinitions(gnu.kawa.util.Pair st, java.util.Vector forms, ScopeExp defs, Translator tr)
          Check if a statement is a definition, for initial pass.
 
Methods inherited from class kawa.lang.Syntax
print, rewrite
 
Methods inherited from class gnu.expr.Declaration
allocateVariable, assignField, compileStore, getCanCall, getCanRead, getCanWrite, getColumn, getContext, getFile, getLine, getName, getType, getValue, getVariable, ignorable, initBinding, isFluid, isIndirectBinding, isLexical, isPrivate, isProcedureDecl, isPublic, isSimple, isStatic, load, loadOwningObject, nextDecl, noteValue, pushIndirectBinding, setCanCall, setCanRead, setCanWrite, setFile, setFlag, setFluid, setIndirectBinding, setLine, setLine, setName, setPrivate, setProcedureDecl, setSimple, setType, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

require

public require()
Method Detail

allocate

public static java.lang.Object allocate(ClassType type,
                                        Environment env)

scanForDefinitions

public boolean scanForDefinitions(gnu.kawa.util.Pair st,
                                  java.util.Vector forms,
                                  ScopeExp defs,
                                  Translator tr)
Description copied from class: Syntax
Check if a statement is a definition, for initial pass.
Overrides:
scanForDefinitions in class Syntax
Tags copied from class: Syntax
Parameters:
st - the statement to check
form - where to append the (possibly-modified) statement
defs - where to add Declarations for found definitions
tr - the compilation state
Returns:
true on success

rewriteForm

public Expression rewriteForm(gnu.kawa.util.Pair form,
                              Translator tr)
Overrides:
rewriteForm in class Syntax