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.


Field Summary
private  java.lang.Object mClassifier
          The current classifier
private  java.lang.Object namespace
          The current namespace.
private  java.util.Vector newFeatures
          The features not found yet
private  java.util.Vector newInnerClasses
          The inner classes not found yet
 
Constructor Summary
ParseState(java.lang.Object handle)
          Create a new parse state.
 
Method Summary
 java.util.Vector getAssociationEnds()
          Get the association ends.
 java.lang.Object getClassifier()
          Get the current classifier.
 java.lang.Object 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.
 java.lang.Object newClassifier(java.lang.String name)
          Tell the parse state that an inner classifier is found.
 void newFeature(java.lang.Object 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
 

Field Detail

namespace

private java.lang.Object namespace
The current namespace.


newInnerClasses

private java.util.Vector newInnerClasses
The inner classes not found yet


newFeatures

private java.util.Vector newFeatures
The features not found yet


mClassifier

private java.lang.Object mClassifier
The current classifier

Constructor Detail

ParseState

public ParseState(java.lang.Object handle)
Create a new parse state.

Parameters:
handle - is the namespace the classifier belongs to.
Method Detail

newClassifier

public java.lang.Object 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(java.lang.Object mFeature)
Tell the parse state that a feature is found in the current classifier.

Parameters:
mFeature - The feature found.

getClassifier

public java.lang.Object 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 java.lang.Object getNamespace()
Get the current namespace.


getAssociationEnds

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



ArgoUML © 1996-2004 (20040306)ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook