kawa.standard
Class prim_method

java.lang.Object
  extended by kawa.lang.Syntax
      extended by kawa.standard.prim_method
All Implemented Interfaces:
Named, Printable

public class prim_method
extends Syntax


Field Summary
static prim_method interface_method
           
static prim_method op1
           
static prim_method static_method
           
static prim_method virtual_method
           
 
Constructor Summary
prim_method()
           
prim_method(int opcode)
           
 
Method Summary
 Expression rewrite(java.lang.Object obj, Translator tr)
          Re-write an expression that is an "application" of this Syntax object.
 
Methods inherited from class kawa.lang.Syntax
getName, getSymbol, print, rewriteForm, rewriteForm, scanForDefinitions, scanForm, setName, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

virtual_method

public static final prim_method virtual_method

static_method

public static final prim_method static_method

interface_method

public static final prim_method interface_method

op1

public static final prim_method op1
Constructor Detail

prim_method

public prim_method(int opcode)

prim_method

public prim_method()
Method Detail

rewrite

public Expression rewrite(java.lang.Object obj,
                          Translator tr)
Description copied from class: Syntax
Re-write an expression that is an "application" of this Syntax object.

Overrides:
rewrite in class Syntax
Parameters:
obj - the arguments to this "application" (i.e. the cdr of the macro/builtin invokation)
tr - the Translator that provides context
Returns:
the re-written expression