ptolemy.data.expr
Class MatrixParser
java.lang.Object
ptolemy.data.expr.MatrixParser
- All Implemented Interfaces:
- MatrixParserConstants, MatrixParserTreeConstants
- public class MatrixParser
- extends java.lang.Object
- implements MatrixParserTreeConstants, MatrixParserConstants
This Class provides a parser for read matrices in matlab format.
- Since:
- Ptolemy II 1.0
- Version:
- $Id: MatrixParser.java,v 1.28 2004/04/13 15:50:04 cxh Exp $
- Author:
- Bart Kienhuis
- Accepted Rating:
- Proposed Rating:
| Fields inherited from interface ptolemy.data.expr.MatrixParserConstants |
COMMENT, CONSTANT, DEFAULT, DIGIT, EOF, FLOAT, INTEGER, NAME, NATURAL, SIGN, tokenImage |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
jjtree
protected static ptolemy.data.expr.JJTMatrixParserState jjtree
token_source
public static MatrixParserTokenManager token_source
token
public static Token token
jj_nt
public static Token jj_nt
MatrixParser
public MatrixParser(java.io.InputStream stream)
MatrixParser
public MatrixParser(java.io.Reader stream)
MatrixParser
public MatrixParser(MatrixParserTokenManager tm)
readMatrix
public java.util.Vector readMatrix()
throws IllegalActionException
- Read a Matrix from File.
- Throws:
IllegalActionException - If an error occurs during parsing.
matrix
public static final java.util.Vector matrix()
throws ParseException
- Throws:
ParseException
row
public static final java.util.Vector row()
throws ParseException
- Throws:
ParseException
element
public static final double element()
throws ParseException
- Throws:
ParseException
ReInit
public static void ReInit(java.io.InputStream stream)
ReInit
public static void ReInit(java.io.Reader stream)
ReInit
public void ReInit(MatrixParserTokenManager tm)
getNextToken
public static final Token getNextToken()
getToken
public static final Token getToken(int index)
generateParseException
public static ParseException generateParseException()
enable_tracing
public static final void enable_tracing()
disable_tracing
public static final void disable_tracing()