Class FIL_J

java.lang.Object
  |
  +--FIL_J
All Implemented Interfaces:
FIL_JConstants

public class FIL_J
extends java.lang.Object
implements FIL_JConstants

The class `FIL_J' implements a parser for the Java-to-FIL mapping language (FIL-J).


Field Summary
 Token jj_nt
           
 boolean lookingAhead
           
 Token token
           
 FIL_JTokenManager token_source
           
 
Fields inherited from interface FIL_JConstants
BINARY, COMMENT, DEFAULT, END_INSTANCE, EOF, IDENTIFIER, INSTANCE, LOGICAL, NULL, NUMBER, REAL, STRING, tokenImage
 
Constructor Summary
FIL_J(FIL_JTokenManager tm)
           
FIL_J(java.io.InputStream stream)
           
FIL_J(java.io.Reader stream)
           
 
Method Summary
 void disable_tracing()
           
 void enable_tracing()
           
 ParseException generateParseException()
           
static Frame getFrame(FrameClass frameClass, int number)
          Looks up the nth instance of the given FrameClass.
 Token getNextToken()
           
 Token getToken(int index)
           
 void Instance()
           
 void InvocationList(InvocationList il)
           
static void main(java.lang.String[] args)
          Runs the FIL_J parser on given input.
 MethodCall MethodCall()
           
 void ReInit(FIL_JTokenManager tm)
           
 void ReInit(java.io.InputStream stream)
           
 void ReInit(java.io.Reader stream)
           
 void Slot(FrameInterface f)
           
 void Start()
           
 java.lang.Object Value()
           
 void ValueList(java.util.Vector v)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

token_source

public FIL_JTokenManager token_source

token

public Token token

jj_nt

public Token jj_nt

lookingAhead

public boolean lookingAhead
Constructor Detail

FIL_J

public FIL_J(java.io.InputStream stream)

FIL_J

public FIL_J(java.io.Reader stream)

FIL_J

public FIL_J(FIL_JTokenManager tm)
Method Detail

getFrame

public static Frame getFrame(FrameClass frameClass,
                             int number)
Looks up the nth instance of the given FrameClass. Note that the instance numbers here are as specified in the FIL_J file rather than the instance numbers frames are given internally.
Parameters:
frameClass - The frame class of the frame to look up.
number - The instance number (as specified in the FIL_J file) of the frame to look up.
Returns:
The frame of that frame class which has that number.

main

public static void main(java.lang.String[] args)
                 throws ParseException
Runs the FIL_J parser on given input.
Parameters:
argv - The vector of command line arguments. Each argument is either an EXPRESS (.exp) file from which to construct the frame classes (do not include frame_classes.exp as that is read automatically) or an FIL_J (.filj) file for instances of those frame classes. At most one of the arguments can be a case library (.cas) file.

Start

public final void Start()
                 throws ParseException

Instance

public final void Instance()
                    throws ParseException

Slot

public final void Slot(FrameInterface f)
                throws ParseException

Value

public final java.lang.Object Value()
                             throws ParseException

ValueList

public final void ValueList(java.util.Vector v)
                     throws ParseException

InvocationList

public final void InvocationList(InvocationList il)
                          throws ParseException

MethodCall

public final MethodCall MethodCall()
                            throws ParseException

ReInit

public void ReInit(java.io.InputStream stream)

ReInit

public void ReInit(java.io.Reader stream)

ReInit

public void ReInit(FIL_JTokenManager tm)

getNextToken

public final Token getNextToken()

getToken

public final Token getToken(int index)

generateParseException

public final ParseException generateParseException()

enable_tracing

public final void enable_tracing()

disable_tracing

public final void disable_tracing()