org.ocltf.parser
Class OclParser
java.lang.Object
org.ocltf.parser.parser.Parser
org.ocltf.parser.OclParser
- public class OclParser
- extends org.ocltf.parser.parser.Parser
This class adapts the Parser class to handle expressions
in which the SableCC parser can't handle.
Field Summary |
protected org.ocltf.parser.OclParser.AstFix |
fix
|
protected org.ocltf.parser.node.Node |
oclNode
|
Fields inherited from class org.ocltf.parser.parser.Parser |
ignoredTokens, node |
Constructor Summary |
OclParser(org.ocltf.parser.lexer.Lexer lexer)
Constructs an instance of OclParser. |
Method Summary |
protected void |
filter()
|
protected org.ocltf.parser.node.TName |
getName(org.ocltf.parser.node.PExpression expression)
Gets the TName from the expression . |
Methods inherited from class org.ocltf.parser.parser.Parser |
parse |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
fix
protected org.ocltf.parser.OclParser.AstFix fix
oclNode
protected org.ocltf.parser.node.Node oclNode
OclParser
public OclParser(org.ocltf.parser.lexer.Lexer lexer)
- Constructs an instance of OclParser.
- Parameters:
lexer
-
filter
protected void filter()
- See Also:
Parser.filter()
getName
protected org.ocltf.parser.node.TName getName(org.ocltf.parser.node.PExpression expression)
- Gets the TName from the
expression
.
- Parameters:
expression
-
- Returns:
- TName the name extracted from the
expression
.
Copyright © 2003-2004 Chad Brandon. All Rights Reserved.