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).
Fields inherited from interface FIL_JConstants |
BINARY, COMMENT, DEFAULT, END_INSTANCE, EOF, IDENTIFIER, INSTANCE, LOGICAL, NULL, NUMBER, REAL, STRING, tokenImage |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
token_source
public FIL_JTokenManager token_source
token
public Token token
jj_nt
public Token jj_nt
lookingAhead
public boolean lookingAhead
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)
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()