org.argouml.language.java.generator
Class ParseState

java.lang.Object
  |
  +--org.argouml.language.java.generator.ParseState

public class ParseState
extends java.lang.Object

This class handles information during the replacement of code pieces. One parse state for each classifier handled.


Constructor Summary
ParseState(MNamespace mNamespace)
          Create a new parse state.
 
Method Summary
 java.util.Vector getAssociationEnds()
          Get the association ends.
 MClassifier getClassifier()
          Get the current classifier.
 MNamespace getNamespace()
          Get the current namespace.
 java.util.Vector getNewFeatures()
          Get all features not in the source.
 java.util.Vector getNewInnerClasses()
          Get all inner classes not in the source.
 MClassifier newClassifier(java.lang.String name)
          Tell the parse state that an inner classifier is found.
 void newFeature(MFeature mFeature)
          Tell the parse state that a feature is found in the current classifier.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParseState

public ParseState(MNamespace mNamespace)
Create a new parse state.

Method Detail

newClassifier

public MClassifier newClassifier(java.lang.String name)
Tell the parse state that an inner classifier is found.

Parameters:
name - The name of the classifier.
Returns:
The new classifier.

newFeature

public void newFeature(MFeature mFeature)
Tell the parse state that a feature is found in the current classifier.

Parameters:
mFeature - The feature found.

getClassifier

public MClassifier getClassifier()
Get the current classifier.


getNewFeatures

public java.util.Vector getNewFeatures()
Get all features not in the source.


getNewInnerClasses

public java.util.Vector getNewInnerClasses()
Get all inner classes not in the source.


getNamespace

public MNamespace getNamespace()
Get the current namespace.


getAssociationEnds

public java.util.Vector getAssociationEnds()
Get the association ends.



ArgoUML © 1996-2003 (20040229)ArgoUML Project HomeArgoUML Cookbook