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 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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CodePiece
public CodePiece()
getText
public abstract StringBuffer getText()
- Returns:
- the string representation for this piece of code
getStartPosition
public abstract int getStartPosition()
- Returns:
- the start position
getEndPosition
public abstract int getEndPosition()
- Returns:
- the end position
getStartLine
public abstract int getStartLine()
- Returns:
- the start line
getEndLine
public abstract int getEndLine()
- Returns:
- the end line