|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.argouml.uml.reveng.java.Modeller
This class receives calls from the parser and builds the UML model. Currently needs work. Class diagrams are stacked on top of each other requiring user to manually rearrange artifacts in diagram. This problem has been noted in Poseidon SE as well. The arrange layout/automatic should be automatically invoked.
Field Summary | |
protected static org.apache.log4j.Category |
cat
|
Constructor Summary | |
Modeller(java.lang.Object model,
DiagramInterface diagram,
boolean noAssociations,
boolean arraysAsDatatype)
Create a new modeller. |
Method Summary | |
void |
addAnonymousClass(java.lang.String type)
Called from the parser when an anonymous inner class is found. |
void |
addAttribute(short modifiers,
java.lang.String typeSpec,
java.lang.String name,
java.lang.String initializer,
java.lang.String javadoc)
Called from the parser when an attribute is found. |
void |
addBodyToOperation(java.lang.Object op,
java.lang.String body)
Called from the parser to add a method body to an operation. |
void |
addCall(java.lang.String method,
java.lang.String obj)
|
void |
addClass(java.lang.String name,
short modifiers,
java.lang.String superclassName,
java.util.Vector interfaces,
java.lang.String javadoc)
Called from the parser when a class declaration is found. |
void |
addImport(java.lang.String name)
Called from the parser when an import clause is found. |
void |
addInterface(java.lang.String name,
short modifiers,
java.util.Vector interfaces,
java.lang.String javadoc)
Called from the parser when an interface declaration is found. |
java.lang.Object |
addOperation(short modifiers,
java.lang.String returnType,
java.lang.String name,
java.util.Vector parameters,
java.lang.String javadoc)
Called from the parser when an operation is found. |
void |
addPackage(java.lang.String name)
Called from the parser when a package clause is found. |
void |
popClassifier()
Called from the parser when a classifier is completely parsed. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static org.apache.log4j.Category cat
Constructor Detail |
public Modeller(java.lang.Object model, DiagramInterface diagram, boolean noAssociations, boolean arraysAsDatatype)
model
- The model to work with.Method Detail |
public void addPackage(java.lang.String name)
name
- The name of the package.public void addImport(java.lang.String name)
name
- The name of the import. Can end with a '*'.public void addClass(java.lang.String name, short modifiers, java.lang.String superclassName, java.util.Vector interfaces, java.lang.String javadoc)
name
- The name of the class.modifiers
- A sequence of class modifiers.superclass
- Zero or one string with the name of the
superclass. Can be fully qualified or
just a simple class name.interfaces
- Zero or more strings with the names of implemented
interfaces. Can be fully qualified or just a
simple interface name.javadoc
- The javadoc comment. null or "" if no comment available.public void addAnonymousClass(java.lang.String type)
type
- The type of this anonymous class.public void addInterface(java.lang.String name, short modifiers, java.util.Vector interfaces, java.lang.String javadoc)
name
- The name of the interface.modifiers
- A sequence of interface modifiers.interfaces
- Zero or more strings with the names of extended
interfaces. Can be fully qualified or just a
simple interface name.javadoc
- The javadoc comment. "" if no comment available.public void popClassifier()
public java.lang.Object addOperation(short modifiers, java.lang.String returnType, java.lang.String name, java.util.Vector parameters, java.lang.String javadoc)
modifiers
- A sequence of operation modifiers.returnType
- The return type of the operation.name
- The name of the operation as a stringparameters
- A number of vectors, each representing a
parameter.javadoc
- The javadoc comment. null or "" if no comment available.public void addBodyToOperation(java.lang.Object op, java.lang.String body)
op
- An operation.body
- A method body.public void addAttribute(short modifiers, java.lang.String typeSpec, java.lang.String name, java.lang.String initializer, java.lang.String javadoc)
modifiers
- A sequence of attribute modifiers.typeSpec
- The attribute's type.variable
- The name of the attribute.initializer
- The initial value of the attribute.javadoc
- The javadoc comment. null or "" if no comment available.public void addCall(java.lang.String method, java.lang.String obj)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML (c) 1996-2002 |