|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.argouml.language.java.generator.CodePiece
org.argouml.language.java.generator.NamedCodePiece
org.argouml.language.java.generator.AttributeCodePiece
This code piece represents an attribute. Even though the code can handle several attributes in the same statement, the code generated will be separate statements and initialization code for all but the last will be removed. JavaRE - Code generation and reverse engineering for UML and Java
Field Summary | |
private CompositeCodePiece |
attributeDef
The code piece this attribute represents. |
private Vector |
attributeNames
The names of declared attributes. |
Constructor Summary | |
AttributeCodePiece(CodePiece modifiers,
CodePiece type,
Vector names)
Constructor. |
Method Summary | |
private GeneratorJava |
generator()
Get the generator. |
int |
getEndLine()
|
int |
getEndPosition()
|
int |
getStartLine()
|
int |
getStartPosition()
|
StringBuffer |
getText()
|
void |
write(BufferedReader reader,
BufferedWriter writer,
Stack parseStateStack)
Write the code this piece represents to file. |
Methods inherited from class org.argouml.language.java.generator.NamedCodePiece |
ffCodePiece |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private CompositeCodePiece attributeDef
private Vector attributeNames
Constructor Detail |
public AttributeCodePiece(CodePiece modifiers, CodePiece type, Vector names)
modifiers
- The code piece for modifiers.type
- The code piece for the type.names
- Vector with attribute names.Method Detail |
public StringBuffer getText()
getText
in class CodePiece
Return the string representation for this piece of code.
public int getStartPosition()
getStartPosition
in class CodePiece
Return the start position.
public int getEndPosition()
getEndPosition
in class CodePiece
Return the end position.
public int getStartLine()
getStartLine
in class CodePiece
Return the start line
public int getEndLine()
getEndLine
in class CodePiece
Return the end line
public void write(BufferedReader reader, BufferedWriter writer, Stack parseStateStack) throws IOException
NamedCodePiece
write
in class NamedCodePiece
reader
- Read original code from this.writer
- Write code to this.parseStateStack
- Information with one stack frame for each
classifier that the parser has descended into.
IOException
- if we cannot write to the writer or
read from the reader.Write the code this piece represents to file.
(Does not check for uniqueness of names.)
private GeneratorJava generator()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML © 1996-2004 (20050222) | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |