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 Tokenjj_ntDeprecated.Next token.protected JJTModelicaParserStatejjtreeDeprecated.TokentokenDeprecated.Current token.ModelicaParserTokenManagertoken_sourceDeprecated.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(net.sourceforge.pmd.lang.ast.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 voidAddOp()Deprecated.voidAlgorithmSection()Deprecated.voidAnnotation()Deprecated.voidArgument()Deprecated.voidArgumentList()Deprecated.voidArithmeticExpression()Deprecated.voidArraySubscripts()Deprecated.voidBasePrefix()Deprecated.voidClassDefinition()Deprecated.voidClassModification()Deprecated.voidClassPrefixes()Deprecated.voidClassSpecifier()Deprecated.voidComment()Deprecated.voidComponentClause()Deprecated.voidComponentClause1()Deprecated.voidComponentDeclaration()Deprecated.voidComponentDeclaration1()Deprecated.voidComponentList()Deprecated.voidComponentReference()Deprecated.voidComposition()Deprecated.voidConditionAttribute()Deprecated.voidConnectClause()Deprecated.voidConstrainingClause()Deprecated.voidDeclaration()Deprecated.voidDerClassSpecifier()Deprecated.voiddisable_tracing()Deprecated.Disable tracing.voidElement()Deprecated.voidElementList(Visibility v)Deprecated.voidElementModification()Deprecated.voidElementModificationOrReplaceable()Deprecated.voidElementRedeclaration()Deprecated.voidElementReplaceable()Deprecated.voidenable_tracing()Deprecated.Enable tracing.voidEnumerationLiteral()Deprecated.voidEnumList()Deprecated.voidEquation()Deprecated.voidEquationList()Deprecated.voidEquationSection()Deprecated.voidExpression()Deprecated.voidExpressionList()Deprecated.voidExtendsClause()Deprecated.voidExternalFunctionCall()Deprecated.voidFactor()Deprecated.voidForEquation()Deprecated.voidForIndex()Deprecated.voidForIndices()Deprecated.voidForStatement()Deprecated.voidFunctionArgument()Deprecated.voidFunctionArguments()Deprecated.voidFunctionCallArgs()Deprecated.ParseExceptiongenerateParseException()Deprecated.Generate ParseException.TokengetNextToken()Deprecated.Get the next Token.TokengetToken(int index)Deprecated.Get the specific Token.voidIfEquation()Deprecated.voidIfExpression()Deprecated.voidIfStatement()Deprecated.voidImportClause()Deprecated.voidImportList()Deprecated.voidLanguageSpecification()Deprecated.voidLogicalExpression()Deprecated.voidLogicalFactor()Deprecated.voidLogicalTerm()Deprecated.voidLongClassSpecifier()Deprecated.voidModification()Deprecated.voidMulOp()Deprecated.voidName()Deprecated.voidNamedArgument()Deprecated.voidNamedArguments()Deprecated.voidNumberLiteral()Deprecated.voidOutputExpressionList()Deprecated.voidPrimary()Deprecated.voidReInit(net.sourceforge.pmd.lang.ast.CharStream stream)Deprecated.Reinitialise.voidReInit(ModelicaParserTokenManager tm)Deprecated.Reinitialise.voidRelation()Deprecated.voidRelOp()Deprecated.voidShortClassDefinition()Deprecated.voidShortClassSpecifier()Deprecated.voidSimpleExpression()Deprecated.voidSimpleName()Deprecated.voidStatement()Deprecated.voidStatementList()Deprecated.ASTStoredDefinitionStoredDefinition()Deprecated.voidStringComment()Deprecated.voidStringLiteral()Deprecated.voidSubscript()Deprecated.voidSubscriptedName()Deprecated.voidTerm()Deprecated.voidTypePrefix()Deprecated.voidTypeSpecifier()Deprecated.voidWhenEquation()Deprecated.voidWhenStatement()Deprecated.voidWhileStatement()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(net.sourceforge.pmd.lang.ast.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 ParseExceptionDeprecated.- Throws:
ParseException
-
ClassSpecifier
public final void ClassSpecifier() throws ParseExceptionDeprecated.- Throws:
ParseException
-
ClassPrefixes
public final void ClassPrefixes() throws ParseExceptionDeprecated.- Throws:
ParseException
-
LongClassSpecifier
public final void LongClassSpecifier() throws ParseExceptionDeprecated.- Throws:
ParseException
-
ShortClassSpecifier
public final void ShortClassSpecifier() throws ParseExceptionDeprecated.- Throws:
ParseException
-
DerClassSpecifier
public final void DerClassSpecifier() throws ParseExceptionDeprecated.- Throws:
ParseException
-
BasePrefix
public final void BasePrefix() throws ParseExceptionDeprecated.- Throws:
ParseException
-
EnumList
public final void EnumList() throws ParseExceptionDeprecated.- Throws:
ParseException
-
EnumerationLiteral
public final void EnumerationLiteral() throws ParseExceptionDeprecated.- Throws:
ParseException
-
Composition
public final void Composition() throws ParseExceptionDeprecated.- Throws:
ParseException
-
LanguageSpecification
public final void LanguageSpecification() throws ParseExceptionDeprecated.- Throws:
ParseException
-
ExternalFunctionCall
public final void ExternalFunctionCall() throws ParseExceptionDeprecated.- Throws:
ParseException
-
ElementList
public final void ElementList(Visibility v) throws ParseException
Deprecated.- Throws:
ParseException
-
Element
public final void Element() throws ParseExceptionDeprecated.- Throws:
ParseException
-
ImportClause
public final void ImportClause() throws ParseExceptionDeprecated.- Throws:
ParseException
-
ImportList
public final void ImportList() throws ParseExceptionDeprecated.- Throws:
ParseException
-
ExtendsClause
public final void ExtendsClause() throws ParseExceptionDeprecated.- Throws:
ParseException
-
ConstrainingClause
public final void ConstrainingClause() throws ParseExceptionDeprecated.- Throws:
ParseException
-
ComponentClause
public final void ComponentClause() throws ParseExceptionDeprecated.- Throws:
ParseException
-
TypePrefix
public final void TypePrefix() throws ParseExceptionDeprecated.- Throws:
ParseException
-
TypeSpecifier
public final void TypeSpecifier() throws ParseExceptionDeprecated.- Throws:
ParseException
-
ComponentList
public final void ComponentList() throws ParseExceptionDeprecated.- Throws:
ParseException
-
ComponentDeclaration
public final void ComponentDeclaration() throws ParseExceptionDeprecated.- Throws:
ParseException
-
ConditionAttribute
public final void ConditionAttribute() throws ParseExceptionDeprecated.- Throws:
ParseException
-
Declaration
public final void Declaration() throws ParseExceptionDeprecated.- Throws:
ParseException
-
Modification
public final void Modification() throws ParseExceptionDeprecated.- Throws:
ParseException
-
ClassModification
public final void ClassModification() throws ParseExceptionDeprecated.- Throws:
ParseException
-
ArgumentList
public final void ArgumentList() throws ParseExceptionDeprecated.- Throws:
ParseException
-
Argument
public final void Argument() throws ParseExceptionDeprecated.- Throws:
ParseException
-
ElementModificationOrReplaceable
public final void ElementModificationOrReplaceable() throws ParseExceptionDeprecated.- Throws:
ParseException
-
ElementModification
public final void ElementModification() throws ParseExceptionDeprecated.- Throws:
ParseException
-
ElementRedeclaration
public final void ElementRedeclaration() throws ParseExceptionDeprecated.- Throws:
ParseException
-
ElementReplaceable
public final void ElementReplaceable() throws ParseExceptionDeprecated.- Throws:
ParseException
-
ComponentClause1
public final void ComponentClause1() throws ParseExceptionDeprecated.- Throws:
ParseException
-
ComponentDeclaration1
public final void ComponentDeclaration1() throws ParseExceptionDeprecated.- Throws:
ParseException
-
ShortClassDefinition
public final void ShortClassDefinition() throws ParseExceptionDeprecated.- Throws:
ParseException
-
EquationSection
public final void EquationSection() throws ParseExceptionDeprecated.- Throws:
ParseException
-
AlgorithmSection
public final void AlgorithmSection() throws ParseExceptionDeprecated.- Throws:
ParseException
-
Equation
public final void Equation() throws ParseExceptionDeprecated.- Throws:
ParseException
-
Statement
public final void Statement() throws ParseExceptionDeprecated.- Throws:
ParseException
-
IfEquation
public final void IfEquation() throws ParseExceptionDeprecated.- Throws:
ParseException
-
IfStatement
public final void IfStatement() throws ParseExceptionDeprecated.- Throws:
ParseException
-
ForEquation
public final void ForEquation() throws ParseExceptionDeprecated.- Throws:
ParseException
-
EquationList
public final void EquationList() throws ParseExceptionDeprecated.- Throws:
ParseException
-
StatementList
public final void StatementList() throws ParseExceptionDeprecated.- Throws:
ParseException
-
ForStatement
public final void ForStatement() throws ParseExceptionDeprecated.- Throws:
ParseException
-
ForIndices
public final void ForIndices() throws ParseExceptionDeprecated.- Throws:
ParseException
-
ForIndex
public final void ForIndex() throws ParseExceptionDeprecated.- Throws:
ParseException
-
WhileStatement
public final void WhileStatement() throws ParseExceptionDeprecated.- Throws:
ParseException
-
WhenEquation
public final void WhenEquation() throws ParseExceptionDeprecated.- Throws:
ParseException
-
WhenStatement
public final void WhenStatement() throws ParseExceptionDeprecated.- Throws:
ParseException
-
ConnectClause
public final void ConnectClause() throws ParseExceptionDeprecated.- Throws:
ParseException
-
Expression
public final void Expression() throws ParseExceptionDeprecated.- Throws:
ParseException
-
IfExpression
public final void IfExpression() throws ParseExceptionDeprecated.- Throws:
ParseException
-
SimpleExpression
public final void SimpleExpression() throws ParseExceptionDeprecated.- Throws:
ParseException
-
LogicalExpression
public final void LogicalExpression() throws ParseExceptionDeprecated.- Throws:
ParseException
-
LogicalTerm
public final void LogicalTerm() throws ParseExceptionDeprecated.- Throws:
ParseException
-
LogicalFactor
public final void LogicalFactor() throws ParseExceptionDeprecated.- Throws:
ParseException
-
Relation
public final void Relation() throws ParseExceptionDeprecated.- Throws:
ParseException
-
RelOp
public final void RelOp() throws ParseExceptionDeprecated.- Throws:
ParseException
-
ArithmeticExpression
public final void ArithmeticExpression() throws ParseExceptionDeprecated.- Throws:
ParseException
-
AddOp
public final void AddOp() throws ParseExceptionDeprecated.- Throws:
ParseException
-
Term
public final void Term() throws ParseExceptionDeprecated.- Throws:
ParseException
-
MulOp
public final void MulOp() throws ParseExceptionDeprecated.- Throws:
ParseException
-
Factor
public final void Factor() throws ParseExceptionDeprecated.- Throws:
ParseException
-
Primary
public final void Primary() throws ParseExceptionDeprecated.- Throws:
ParseException
-
NumberLiteral
public final void NumberLiteral() throws ParseExceptionDeprecated.- Throws:
ParseException
-
StringLiteral
public final void StringLiteral() throws ParseExceptionDeprecated.- Throws:
ParseException
-
Name
public final void Name() throws ParseExceptionDeprecated.- Throws:
ParseException
-
SimpleName
public final void SimpleName() throws ParseExceptionDeprecated.- Throws:
ParseException
-
SubscriptedName
public final void SubscriptedName() throws ParseExceptionDeprecated.- Throws:
ParseException
-
ComponentReference
public final void ComponentReference() throws ParseExceptionDeprecated.- Throws:
ParseException
-
FunctionCallArgs
public final void FunctionCallArgs() throws ParseExceptionDeprecated.- Throws:
ParseException
-
FunctionArguments
public final void FunctionArguments() throws ParseExceptionDeprecated.- Throws:
ParseException
-
NamedArguments
public final void NamedArguments() throws ParseExceptionDeprecated.- Throws:
ParseException
-
NamedArgument
public final void NamedArgument() throws ParseExceptionDeprecated.- Throws:
ParseException
-
FunctionArgument
public final void FunctionArgument() throws ParseExceptionDeprecated.- Throws:
ParseException
-
OutputExpressionList
public final void OutputExpressionList() throws ParseExceptionDeprecated.- Throws:
ParseException
-
ExpressionList
public final void ExpressionList() throws ParseExceptionDeprecated.- Throws:
ParseException
-
ArraySubscripts
public final void ArraySubscripts() throws ParseExceptionDeprecated.- Throws:
ParseException
-
Subscript
public final void Subscript() throws ParseExceptionDeprecated.- Throws:
ParseException
-
Comment
public final void Comment() throws ParseExceptionDeprecated.- Throws:
ParseException
-
StringComment
public final void StringComment() throws ParseExceptionDeprecated.- Throws:
ParseException
-
Annotation
public final void Annotation() throws ParseExceptionDeprecated.- Throws:
ParseException
-
ReInit
public void ReInit(net.sourceforge.pmd.lang.ast.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.
-
-