org.argouml.language.java.generator
Class SimpleCodePiece
java.lang.Object
|
+--org.argouml.language.java.generator.CodePiece
|
+--org.argouml.language.java.generator.SimpleCodePiece
- public class SimpleCodePiece
- extends CodePiece
This piece of code is just one token.
Constructor Summary |
SimpleCodePiece(java.lang.StringBuffer text,
int line,
int startPosition,
int endPosition)
Create a simple piece of code. |
SimpleCodePiece(antlr.Token token)
Create a simple piece of code from a token. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleCodePiece
public SimpleCodePiece(java.lang.StringBuffer text,
int line,
int startPosition,
int endPosition)
- Create a simple piece of code.
SimpleCodePiece
public SimpleCodePiece(antlr.Token token)
- Create a simple piece of code from a token.
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