org.argouml.language.java.generator
Class CompositeCodePiece
java.lang.Object
|
+--org.argouml.language.java.generator.CodePiece
|
+--org.argouml.language.java.generator.CompositeCodePiece
- public class CompositeCodePiece
- extends CodePiece
This piece of code is a composition of several adjacent pieces of
code. The code piece can have holes.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CompositeCodePiece
public CompositeCodePiece(CodePiece codePiece)
- Create a composite piece of code.
- Parameters:
codePiece
- A starter code piece.
add
public void add(CodePiece codePiece)
- Append a code piece to the end.
getText
public java.lang.StringBuffer getText()
- Return the string representation for this piece of code.
- Overrides:
getText
in class CodePiece
getStartPosition
public int getStartPosition()
- Return the start position.
- Overrides:
getStartPosition
in class CodePiece
getEndPosition
public int getEndPosition()
- Return the end position.
- Overrides:
getEndPosition
in class CodePiece
getStartLine
public int getStartLine()
- Return the start line
- Overrides:
getStartLine
in class CodePiece
getEndLine
public int getEndLine()
- Return the end line
- Overrides:
getEndLine
in class CodePiece