public class MatrixParser extends java.lang.Object implements MatrixParserTreeConstants, MatrixParserConstants
Modifier and Type | Field and Description |
---|---|
(package private) SimpleCharStream |
jj_input_stream |
Token |
jj_nt
Next token.
|
protected JJTMatrixParserState |
jjtree |
Token |
token
Current token.
|
MatrixParserTokenManager |
token_source
Generated Token Manager.
|
JJTELEMENT, JJTMATRIX, jjtNodeName, JJTROW
Constructor and Description |
---|
MatrixParser(java.io.InputStream stream)
Constructor with InputStream.
|
MatrixParser(java.io.InputStream stream,
java.lang.String encoding)
Constructor with InputStream and supplied encoding
|
MatrixParser(MatrixParserTokenManager tm)
Constructor with generated Token Manager.
|
MatrixParser(java.io.Reader stream)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
disable_tracing()
Disable tracing.
|
double |
element() |
void |
enable_tracing()
Enable tracing.
|
ParseException |
generateParseException()
Generate ParseException.
|
Token |
getNextToken()
Get the next Token.
|
Token |
getToken(int index)
Get the specific Token.
|
java.util.Vector |
matrix() |
java.util.Vector |
readMatrix()
Read a Matrix from File.
|
void |
ReInit(java.io.InputStream stream)
Reinitialise.
|
void |
ReInit(java.io.InputStream stream,
java.lang.String encoding)
Reinitialise.
|
void |
ReInit(MatrixParserTokenManager tm)
Reinitialise.
|
void |
ReInit(java.io.Reader stream)
Reinitialise.
|
java.util.Vector |
row() |
protected JJTMatrixParserState jjtree
public MatrixParserTokenManager token_source
SimpleCharStream jj_input_stream
public Token token
public Token jj_nt
public MatrixParser(java.io.InputStream stream)
public MatrixParser(java.io.InputStream stream, java.lang.String encoding)
public MatrixParser(java.io.Reader stream)
public MatrixParser(MatrixParserTokenManager tm)
public java.util.Vector readMatrix() throws IllegalActionException
IllegalActionException
- If an error occurs during parsing.public final java.util.Vector matrix() throws ParseException
ParseException
public final java.util.Vector row() throws ParseException
ParseException
public final double element() throws ParseException
ParseException
public void ReInit(java.io.InputStream stream)
public void ReInit(java.io.InputStream stream, java.lang.String encoding)
public void ReInit(java.io.Reader stream)
public void ReInit(MatrixParserTokenManager tm)
public final Token getNextToken()
public final Token getToken(int index)
public ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()