Class Declaration

java.lang.Object
  |
  +--RETRAN
        |
        +--Declaration

public class Declaration
extends RETRAN

A RETRAN-2 declaration.

Version:
2.0 Oct 2003
Author:
Paul Bailes, Ned Martin, modified 02-Nov-2003

Field Summary
private  Expression body
           
private  java.lang.String fname
           
private  NameList pnames
           
 
Constructor Summary
Declaration(java.lang.String fn, NameList ps, Expression fb)
          Constructs a Declaration
 
Method Summary
 void JGen()
          Generates java source code for the declaration.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

fname

private java.lang.String fname

pnames

private NameList pnames

body

private Expression body
Constructor Detail

Declaration

public Declaration(java.lang.String fn,
                   NameList ps,
                   Expression fb)
Constructs a Declaration
Parameters:
fn - the function name
ps - the parameter names
fb - the function body
Method Detail

JGen

public void JGen()
Generates java source code for the declaration.
Overrides:
JGen in class RETRAN