org.argouml.language.java.generator
Class CodePiece
java.lang.Object
|
+--org.argouml.language.java.generator.CodePiece
- Direct Known Subclasses:
- CompositeCodePiece, NamedCodePiece, SimpleCodePiece
- public abstract class CodePiece
- extends java.lang.Object
A piece of code is a continuous part of a source code file. The
code piece is going to be replaced by a string generated from the
UML model.
Method Summary |
abstract int |
getEndLine()
Return the end line |
abstract int |
getEndPosition()
Return the end position. |
abstract int |
getStartLine()
Return the start line |
abstract int |
getStartPosition()
Return the start position. |
abstract java.lang.StringBuffer |
getText()
Return the string representation for this piece of code. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CodePiece
public CodePiece()
getText
public abstract java.lang.StringBuffer getText()
- Return the string representation for this piece of code.
getStartPosition
public abstract int getStartPosition()
- Return the start position.
getEndPosition
public abstract int getEndPosition()
- Return the end position.
getStartLine
public abstract int getStartLine()
- Return the start line
getEndLine
public abstract int getEndLine()
- Return the end line