Class ModelicaParser
- java.lang.Object
-
- net.sourceforge.pmd.lang.modelica.ast.ModelicaParser
-
- All Implemented Interfaces:
ModelicaParserConstants
,ModelicaParserTreeConstants
@Deprecated @InternalApi public class ModelicaParser extends Object implements ModelicaParserTreeConstants, ModelicaParserConstants
Deprecated.
-
-
Field Summary
Fields Modifier and Type Field Description Token
jj_nt
Deprecated.Next token.protected JJTModelicaParserState
jjtree
Deprecated.Token
token
Deprecated.Current token.ModelicaParserTokenManager
token_source
Deprecated.Generated Token Manager.-
Fields inherited from interface net.sourceforge.pmd.lang.modelica.ast.ModelicaParserConstants
ALGORITHM, AND, ANNOTATION, ASSIGN, ASTERISK, BLOCK, BOM, BREAK, CLASS, COLON, COMMA, CONNECT, CONNECTOR, CONSTANT, CONSTRAINEDBY, DEFAULT, DER, DIGIT, DISCRETE, DOT, DOT_ASTERISK, DOT_HAT, DOT_MINUS, DOT_PLUS, DOT_SLASH, EACH, ELSE, ELSEIF, ELSEWHEN, ENCAPSULATED, END, ENUMERATION, EOF, EQ, EQ_SIGN, EQUATION, EXPANDABLE, EXTENDS, EXTERNAL, FALSE, FINAL, FLOW, FOR, FUNCTION, GE, GT, HAT, IDENT, IF, IMPORT, IMPURE, IN, IN_MULTI_LINE_COMMENT, IN_PREPROCESSOR_OUTPUT_COMMENT, INITIAL, INNER, INPUT, LCURL, LE, LINE_COMMENT, LOOP, LPAREN, LSQUARE, LT, MINUS, MODEL, MULTI_LINE_COMMENT, NEQ, NONDIGIT, NOT, OPERATOR, OR, OUTER, OUTPUT, PACKAGE, PARAMETER, PARTIAL, PLUS, PROTECTED, PUBLIC, PURE, Q_CHAR, Q_IDENT, RCURL, RECORD, REDECLARE, REPLACEABLE, RETURN, RPAREN, RSQUARE, S_CHAR, S_ESCAPE, SC, SLASH, STREAM, STRING, THEN, tokenImage, TRUE, TYPE, UNSIGNED_INTEGER, UNSIGNED_NUMBER, WHEN, WHILE, WITHIN, WS
-
Fields inherited from interface net.sourceforge.pmd.lang.modelica.ast.ModelicaParserTreeConstants
JJTADDOP, JJTALGORITHMSECTION, JJTANNOTATION, JJTARGUMENT, JJTARGUMENTLIST, JJTARITHMETICEXPRESSION, JJTARRAYSUBSCRIPTS, JJTASSIGNMENTFROMMULTIRESULTFUNCTIONCALL, JJTASSIGNMENTMODIFICATION, JJTASSIGNMENTSTATEMENT, JJTBASEPREFIX, JJTBLOCKCLAUSE, JJTBREAKSTATEMENT, JJTCLASSCLAUSE, JJTCLASSDEFINITION, JJTCLASSMODIFICATION, JJTCLASSPREFIXES, JJTCLASSSPECIFIER, JJTCOLONSUBSRIPT, JJTCOMMENT, JJTCOMPONENTCLAUSE, JJTCOMPONENTCLAUSE1, JJTCOMPONENTDECLARATION, JJTCOMPONENTDECLARATION1, JJTCOMPONENTLIST, JJTCOMPONENTREFERENCE, JJTCOMPOSITION, JJTCONDITIONATTRIBUTE, JJTCONNECTCLAUSE, JJTCONNECTORCLAUSE, JJTCONSTANTCLAUSE, JJTCONSTRAININGCLAUSE, JJTDECLARATION, JJTDERCLASSSPECIFIER, JJTDERCLAUSE, JJTDISCRETECLAUSE, JJTEACHCLAUSE, JJTELEMENTLIST, JJTELEMENTMODIFICATION, JJTELEMENTMODIFICATIONORREPLACEABLE, JJTELEMENTREDECLARATION, JJTELEMENTREPLACEABLE, JJTELSECLAUSE, JJTELSEIFCLAUSE, JJTELSEWHENCLAUSE, JJTENCAPSULATEDCLAUSE, JJTENUMERATIONLITERAL, JJTENUMERATIONSHORTCLASSSPECIFIER, JJTENUMLIST, JJTEQUATION, JJTEQUATIONLIST, JJTEQUATIONSECTION, JJTEXPANDABLECONNECTORCLAUSE, JJTEXPRESSIONLIST, JJTEXTENDINGLONGCLASSSPECIFIER, JJTEXTENDSCLAUSE, JJTEXTERNALCLAUSE, JJTEXTERNALFUNCTIONCALL, JJTFACTOR, JJTFALSELITERAL, JJTFINALCLAUSE, JJTFLOWCLAUSE, JJTFOREQUATION, JJTFORINDEX, JJTFORINDICES, JJTFORSTATEMENT, JJTFUNCTIONARGUMENT, JJTFUNCTIONARGUMENTS, JJTFUNCTIONCALLARGS, JJTFUNCTIONCALLEQUATION, JJTFUNCTIONCALLSTATEMENT, JJTFUNCTIONCLAUSE, JJTFUNCTIONINVOCATION, JJTIFCLAUSE, JJTIFEQUATION, JJTIFEXPRESSION, JJTIFSTATEMENT, JJTIMPORTCLAUSE, JJTIMPORTLIST, JJTIMPURECLAUSE, JJTINITIALCLAUSE, JJTINNERCLAUSE, JJTINPUTCLAUSE, JJTLANGUAGESPECIFICATION, JJTLISTOFEXPRESSIONLISTS, JJTLOGICALEXPRESSION, JJTLOGICALTERM, JJTLONGMODIFICATION, JJTMODELCLAUSE, JJTMULOP, JJTMULTIPLEDEFINITIONIMPORTCLAUSE, JJTNAME, JJTNAMEDARGUMENT, JJTNAMEDARGUMENTS, JJTNEGATED, jjtNodeName, JJTNUMBERLITERAL, JJTOPERATOR, JJTOPERATORCLAUSE, JJTOPERATORRECORDCLAUSE, JJTOUTERCLAUSE, JJTOUTPUTCLAUSE, JJTOUTPUTEXPRESSIONLIST, JJTPACKAGECLAUSE, JJTPARAMETERCLAUSE, JJTPARTIALCLAUSE, JJTPURECLAUSE, JJTRECORDCLAUSE, JJTREDECLARECLAUSE, JJTREGULARELEMENT, JJTREGULAREQUATION, JJTRELATION, JJTRELOP, JJTRENAMINGIMPORTCLAUSE, JJTREPLACEABLECLAUSE, JJTRETURNSTATEMENT, JJTSHORTCLASSDEFINITION, JJTSHORTMODIFICATION, JJTSIMPLEEXPRESSION, JJTSIMPLELONGCLASSSPECIFIER, JJTSIMPLENAME, JJTSIMPLESHORTCLASSSPECIFIER, JJTSINGLEDEFINITIONIMPORTCLAUSE, JJTSTATEMENT, JJTSTATEMENTLIST, JJTSTOREDDEFINITION, JJTSTREAMCLAUSE, JJTSTRINGCOMMENT, JJTSTRINGLITERAL, JJTSUBSCRIPT, JJTSUBSCRIPTEDNAME, JJTTERM, JJTTHENCLAUSE, JJTTRUELITERAL, JJTTYPECLAUSE, JJTTYPEPREFIX, JJTTYPESPECIFIER, JJTUNQUALIFIEDIMPORTCLAUSE, JJTVOID, JJTWHENCLAUSE, JJTWHENEQUATION, JJTWHENSTATEMENT, JJTWHILESTATEMENT, JJTWITHINCLAUSE
-
-
Constructor Summary
Constructors Constructor Description ModelicaParser(CharStream stream)
Deprecated.Constructor with user supplied CharStream.ModelicaParser(ModelicaParserTokenManager tm)
Deprecated.Constructor with generated Token Manager.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
AddOp()
Deprecated.void
AlgorithmSection()
Deprecated.void
Annotation()
Deprecated.void
Argument()
Deprecated.void
ArgumentList()
Deprecated.void
ArithmeticExpression()
Deprecated.void
ArraySubscripts()
Deprecated.void
BasePrefix()
Deprecated.void
ClassDefinition()
Deprecated.void
ClassModification()
Deprecated.void
ClassPrefixes()
Deprecated.void
ClassSpecifier()
Deprecated.void
Comment()
Deprecated.void
ComponentClause()
Deprecated.void
ComponentClause1()
Deprecated.void
ComponentDeclaration()
Deprecated.void
ComponentDeclaration1()
Deprecated.void
ComponentList()
Deprecated.void
ComponentReference()
Deprecated.void
Composition()
Deprecated.void
ConditionAttribute()
Deprecated.void
ConnectClause()
Deprecated.void
ConstrainingClause()
Deprecated.void
Declaration()
Deprecated.void
DerClassSpecifier()
Deprecated.void
disable_tracing()
Deprecated.Disable tracing.void
Element()
Deprecated.void
ElementList(Visibility v)
Deprecated.void
ElementModification()
Deprecated.void
ElementModificationOrReplaceable()
Deprecated.void
ElementRedeclaration()
Deprecated.void
ElementReplaceable()
Deprecated.void
enable_tracing()
Deprecated.Enable tracing.void
EnumerationLiteral()
Deprecated.void
EnumList()
Deprecated.void
Equation()
Deprecated.void
EquationList()
Deprecated.void
EquationSection()
Deprecated.void
Expression()
Deprecated.void
ExpressionList()
Deprecated.void
ExtendsClause()
Deprecated.void
ExternalFunctionCall()
Deprecated.void
Factor()
Deprecated.void
ForEquation()
Deprecated.void
ForIndex()
Deprecated.void
ForIndices()
Deprecated.void
ForStatement()
Deprecated.void
FunctionArgument()
Deprecated.void
FunctionArguments()
Deprecated.void
FunctionCallArgs()
Deprecated.ParseException
generateParseException()
Deprecated.Generate ParseException.Token
getNextToken()
Deprecated.Get the next Token.Token
getToken(int index)
Deprecated.Get the specific Token.void
IfEquation()
Deprecated.void
IfExpression()
Deprecated.void
IfStatement()
Deprecated.void
ImportClause()
Deprecated.void
ImportList()
Deprecated.void
LanguageSpecification()
Deprecated.void
LogicalExpression()
Deprecated.void
LogicalFactor()
Deprecated.void
LogicalTerm()
Deprecated.void
LongClassSpecifier()
Deprecated.void
Modification()
Deprecated.void
MulOp()
Deprecated.void
Name()
Deprecated.void
NamedArgument()
Deprecated.void
NamedArguments()
Deprecated.void
NumberLiteral()
Deprecated.void
OutputExpressionList()
Deprecated.void
Primary()
Deprecated.void
ReInit(CharStream stream)
Deprecated.Reinitialise.void
ReInit(ModelicaParserTokenManager tm)
Deprecated.Reinitialise.void
Relation()
Deprecated.void
RelOp()
Deprecated.void
ShortClassDefinition()
Deprecated.void
ShortClassSpecifier()
Deprecated.void
SimpleExpression()
Deprecated.void
SimpleName()
Deprecated.void
Statement()
Deprecated.void
StatementList()
Deprecated.ASTStoredDefinition
StoredDefinition()
Deprecated.void
StringComment()
Deprecated.void
StringLiteral()
Deprecated.void
Subscript()
Deprecated.void
SubscriptedName()
Deprecated.void
Term()
Deprecated.void
TypePrefix()
Deprecated.void
TypeSpecifier()
Deprecated.void
WhenEquation()
Deprecated.void
WhenStatement()
Deprecated.void
WhileStatement()
Deprecated.
-
-
-
Field Detail
-
jjtree
protected JJTModelicaParserState jjtree
Deprecated.
-
token_source
public ModelicaParserTokenManager token_source
Deprecated.Generated Token Manager.
-
token
public Token token
Deprecated.Current token.
-
jj_nt
public Token jj_nt
Deprecated.Next token.
-
-
Constructor Detail
-
ModelicaParser
public ModelicaParser(CharStream stream)
Deprecated.Constructor with user supplied CharStream.
-
ModelicaParser
public ModelicaParser(ModelicaParserTokenManager tm)
Deprecated.Constructor with generated Token Manager.
-
-
Method Detail
-
StoredDefinition
public final ASTStoredDefinition StoredDefinition() throws ParseException
Deprecated.- Throws:
ParseException
-
ClassDefinition
public final void ClassDefinition() throws ParseException
Deprecated.- Throws:
ParseException
-
ClassSpecifier
public final void ClassSpecifier() throws ParseException
Deprecated.- Throws:
ParseException
-
ClassPrefixes
public final void ClassPrefixes() throws ParseException
Deprecated.- Throws:
ParseException
-
LongClassSpecifier
public final void LongClassSpecifier() throws ParseException
Deprecated.- Throws:
ParseException
-
ShortClassSpecifier
public final void ShortClassSpecifier() throws ParseException
Deprecated.- Throws:
ParseException
-
DerClassSpecifier
public final void DerClassSpecifier() throws ParseException
Deprecated.- Throws:
ParseException
-
BasePrefix
public final void BasePrefix() throws ParseException
Deprecated.- Throws:
ParseException
-
EnumList
public final void EnumList() throws ParseException
Deprecated.- Throws:
ParseException
-
EnumerationLiteral
public final void EnumerationLiteral() throws ParseException
Deprecated.- Throws:
ParseException
-
Composition
public final void Composition() throws ParseException
Deprecated.- Throws:
ParseException
-
LanguageSpecification
public final void LanguageSpecification() throws ParseException
Deprecated.- Throws:
ParseException
-
ExternalFunctionCall
public final void ExternalFunctionCall() throws ParseException
Deprecated.- Throws:
ParseException
-
ElementList
public final void ElementList(Visibility v) throws ParseException
Deprecated.- Throws:
ParseException
-
Element
public final void Element() throws ParseException
Deprecated.- Throws:
ParseException
-
ImportClause
public final void ImportClause() throws ParseException
Deprecated.- Throws:
ParseException
-
ImportList
public final void ImportList() throws ParseException
Deprecated.- Throws:
ParseException
-
ExtendsClause
public final void ExtendsClause() throws ParseException
Deprecated.- Throws:
ParseException
-
ConstrainingClause
public final void ConstrainingClause() throws ParseException
Deprecated.- Throws:
ParseException
-
ComponentClause
public final void ComponentClause() throws ParseException
Deprecated.- Throws:
ParseException
-
TypePrefix
public final void TypePrefix() throws ParseException
Deprecated.- Throws:
ParseException
-
TypeSpecifier
public final void TypeSpecifier() throws ParseException
Deprecated.- Throws:
ParseException
-
ComponentList
public final void ComponentList() throws ParseException
Deprecated.- Throws:
ParseException
-
ComponentDeclaration
public final void ComponentDeclaration() throws ParseException
Deprecated.- Throws:
ParseException
-
ConditionAttribute
public final void ConditionAttribute() throws ParseException
Deprecated.- Throws:
ParseException
-
Declaration
public final void Declaration() throws ParseException
Deprecated.- Throws:
ParseException
-
Modification
public final void Modification() throws ParseException
Deprecated.- Throws:
ParseException
-
ClassModification
public final void ClassModification() throws ParseException
Deprecated.- Throws:
ParseException
-
ArgumentList
public final void ArgumentList() throws ParseException
Deprecated.- Throws:
ParseException
-
Argument
public final void Argument() throws ParseException
Deprecated.- Throws:
ParseException
-
ElementModificationOrReplaceable
public final void ElementModificationOrReplaceable() throws ParseException
Deprecated.- Throws:
ParseException
-
ElementModification
public final void ElementModification() throws ParseException
Deprecated.- Throws:
ParseException
-
ElementRedeclaration
public final void ElementRedeclaration() throws ParseException
Deprecated.- Throws:
ParseException
-
ElementReplaceable
public final void ElementReplaceable() throws ParseException
Deprecated.- Throws:
ParseException
-
ComponentClause1
public final void ComponentClause1() throws ParseException
Deprecated.- Throws:
ParseException
-
ComponentDeclaration1
public final void ComponentDeclaration1() throws ParseException
Deprecated.- Throws:
ParseException
-
ShortClassDefinition
public final void ShortClassDefinition() throws ParseException
Deprecated.- Throws:
ParseException
-
EquationSection
public final void EquationSection() throws ParseException
Deprecated.- Throws:
ParseException
-
AlgorithmSection
public final void AlgorithmSection() throws ParseException
Deprecated.- Throws:
ParseException
-
Equation
public final void Equation() throws ParseException
Deprecated.- Throws:
ParseException
-
Statement
public final void Statement() throws ParseException
Deprecated.- Throws:
ParseException
-
IfEquation
public final void IfEquation() throws ParseException
Deprecated.- Throws:
ParseException
-
IfStatement
public final void IfStatement() throws ParseException
Deprecated.- Throws:
ParseException
-
ForEquation
public final void ForEquation() throws ParseException
Deprecated.- Throws:
ParseException
-
EquationList
public final void EquationList() throws ParseException
Deprecated.- Throws:
ParseException
-
StatementList
public final void StatementList() throws ParseException
Deprecated.- Throws:
ParseException
-
ForStatement
public final void ForStatement() throws ParseException
Deprecated.- Throws:
ParseException
-
ForIndices
public final void ForIndices() throws ParseException
Deprecated.- Throws:
ParseException
-
ForIndex
public final void ForIndex() throws ParseException
Deprecated.- Throws:
ParseException
-
WhileStatement
public final void WhileStatement() throws ParseException
Deprecated.- Throws:
ParseException
-
WhenEquation
public final void WhenEquation() throws ParseException
Deprecated.- Throws:
ParseException
-
WhenStatement
public final void WhenStatement() throws ParseException
Deprecated.- Throws:
ParseException
-
ConnectClause
public final void ConnectClause() throws ParseException
Deprecated.- Throws:
ParseException
-
Expression
public final void Expression() throws ParseException
Deprecated.- Throws:
ParseException
-
IfExpression
public final void IfExpression() throws ParseException
Deprecated.- Throws:
ParseException
-
SimpleExpression
public final void SimpleExpression() throws ParseException
Deprecated.- Throws:
ParseException
-
LogicalExpression
public final void LogicalExpression() throws ParseException
Deprecated.- Throws:
ParseException
-
LogicalTerm
public final void LogicalTerm() throws ParseException
Deprecated.- Throws:
ParseException
-
LogicalFactor
public final void LogicalFactor() throws ParseException
Deprecated.- Throws:
ParseException
-
Relation
public final void Relation() throws ParseException
Deprecated.- Throws:
ParseException
-
RelOp
public final void RelOp() throws ParseException
Deprecated.- Throws:
ParseException
-
ArithmeticExpression
public final void ArithmeticExpression() throws ParseException
Deprecated.- Throws:
ParseException
-
AddOp
public final void AddOp() throws ParseException
Deprecated.- Throws:
ParseException
-
Term
public final void Term() throws ParseException
Deprecated.- Throws:
ParseException
-
MulOp
public final void MulOp() throws ParseException
Deprecated.- Throws:
ParseException
-
Factor
public final void Factor() throws ParseException
Deprecated.- Throws:
ParseException
-
Primary
public final void Primary() throws ParseException
Deprecated.- Throws:
ParseException
-
NumberLiteral
public final void NumberLiteral() throws ParseException
Deprecated.- Throws:
ParseException
-
StringLiteral
public final void StringLiteral() throws ParseException
Deprecated.- Throws:
ParseException
-
Name
public final void Name() throws ParseException
Deprecated.- Throws:
ParseException
-
SimpleName
public final void SimpleName() throws ParseException
Deprecated.- Throws:
ParseException
-
SubscriptedName
public final void SubscriptedName() throws ParseException
Deprecated.- Throws:
ParseException
-
ComponentReference
public final void ComponentReference() throws ParseException
Deprecated.- Throws:
ParseException
-
FunctionCallArgs
public final void FunctionCallArgs() throws ParseException
Deprecated.- Throws:
ParseException
-
FunctionArguments
public final void FunctionArguments() throws ParseException
Deprecated.- Throws:
ParseException
-
NamedArguments
public final void NamedArguments() throws ParseException
Deprecated.- Throws:
ParseException
-
NamedArgument
public final void NamedArgument() throws ParseException
Deprecated.- Throws:
ParseException
-
FunctionArgument
public final void FunctionArgument() throws ParseException
Deprecated.- Throws:
ParseException
-
OutputExpressionList
public final void OutputExpressionList() throws ParseException
Deprecated.- Throws:
ParseException
-
ExpressionList
public final void ExpressionList() throws ParseException
Deprecated.- Throws:
ParseException
-
ArraySubscripts
public final void ArraySubscripts() throws ParseException
Deprecated.- Throws:
ParseException
-
Subscript
public final void Subscript() throws ParseException
Deprecated.- Throws:
ParseException
-
Comment
public final void Comment() throws ParseException
Deprecated.- Throws:
ParseException
-
StringComment
public final void StringComment() throws ParseException
Deprecated.- Throws:
ParseException
-
Annotation
public final void Annotation() throws ParseException
Deprecated.- Throws:
ParseException
-
ReInit
public void ReInit(CharStream stream)
Deprecated.Reinitialise.
-
ReInit
public void ReInit(ModelicaParserTokenManager tm)
Deprecated.Reinitialise.
-
getNextToken
public final Token getNextToken()
Deprecated.Get the next Token.
-
getToken
public final Token getToken(int index)
Deprecated.Get the specific Token.
-
generateParseException
public ParseException generateParseException()
Deprecated.Generate ParseException.
-
enable_tracing
public final void enable_tracing()
Deprecated.Enable tracing.
-
disable_tracing
public final void disable_tracing()
Deprecated.Disable tracing.
-
-