org.ocltf.parser
Class OclParser

java.lang.Object
  extended byorg.ocltf.parser.parser.Parser
      extended byorg.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
 

Field Detail

fix

protected org.ocltf.parser.OclParser.AstFix fix

oclNode

protected org.ocltf.parser.node.Node oclNode
Constructor Detail

OclParser

public OclParser(org.ocltf.parser.lexer.Lexer lexer)
Constructs an instance of OclParser.

Parameters:
lexer -
Method Detail

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.