Class FIL_C
java.lang.Object
|
+--FIL_C
- All Implemented Interfaces:
- FIL_CConstants
- public class FIL_C
- extends java.lang.Object
- implements FIL_CConstants
The class `FIL_C' implements a parser for FIL-C, an extension of FIL for
representing cases.
Fields inherited from interface FIL_CConstants |
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_CTokenManager token_source
token
public Token token
jj_nt
public Token jj_nt
lookingAhead
public boolean lookingAhead
FIL_C
public FIL_C(java.io.InputStream stream)
FIL_C
public FIL_C(java.io.Reader stream)
FIL_C
public FIL_C(FIL_CTokenManager 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-C 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-C 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-C 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-C (.filc) file for a network
of frames representing a case. At most one of the arguments can be
a binary case library (.cas) file.
Start
public final void Start()
throws ParseException
Instance
public final Frame Instance()
throws ParseException
Slot
public final void Slot(Frame f)
throws ParseException
Value
public final java.lang.Object Value()
throws ParseException
ValueList
public final void ValueList(java.util.Vector v)
throws ParseException
ReInit
public void ReInit(java.io.InputStream stream)
ReInit
public void ReInit(java.io.Reader stream)
ReInit
public void ReInit(FIL_CTokenManager 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()