de.tuberlin.cs.cis.ocl.util
Class NodeTokenizer

java.lang.Object
  |
  +--de.tuberlin.cs.cis.ocl.util.NodeTokenizer

public class NodeTokenizer
extends java.lang.Object

Extracts the tokens of a node.

Author:
fchabar

Constructor Summary
NodeTokenizer()
           
 
Method Summary
static de.tuberlin.cs.cis.ocl.parser.node.Token[] tokenize(de.tuberlin.cs.cis.ocl.parser.node.Node node)
          Extracts all tokens of a node.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeTokenizer

public NodeTokenizer()
Method Detail

tokenize

public static de.tuberlin.cs.cis.ocl.parser.node.Token[] tokenize(de.tuberlin.cs.cis.ocl.parser.node.Node node)
Extracts all tokens of a node. The order of the tokens is the order of the token within the node.

Parameters:
node - a node (!= null)
Returns:
all tokens contained in the node.