org.argouml.language.java.generator
Class ParseState

java.lang.Object
  extended byorg.argouml.language.java.generator.ParseState

public class ParseState
extends Object

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


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


newInnerClasses

private Vector newInnerClasses
The inner classes not found yet.


newFeatures

private Vector newFeatures
The features not found yet.


mClassifier

private Object mClassifier
The current classifier.

Constructor Detail

ParseState

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

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

newClassifier

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

Parameters:
mFeature - The feature found.

getClassifier

public Object getClassifier()
Get the current classifier.

Returns:
the current classifier

getNewFeatures

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

Returns:
all features not in the source

getNewInnerClasses

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

Returns:
all inner classes not in the source

getNamespace

public Object getNamespace()
Get the current namespace.

Returns:
the current namespace

getAssociationEnds

public Vector getAssociationEnds()
Get the association ends.

Returns:
the association ends


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