|
|||||||||||
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.SimpleCodePiece
This piece of code is just one token.
Field Summary | |
private int |
endPosition
|
private int |
line
|
private int |
startPosition
|
private StringBuffer |
text
|
Constructor Summary | |
SimpleCodePiece(StringBuffer t,
int lne,
int sp,
int ep)
Create a simple piece of code. |
|
SimpleCodePiece(antlr.Token token)
Create a simple piece of code from a token. |
Method Summary | |
int |
getEndLine()
Return the end line |
int |
getEndPosition()
Return the end position. |
int |
getStartLine()
Return the start line |
int |
getStartPosition()
Return the start position. |
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 |
Field Detail |
private StringBuffer text
private int line
private int startPosition
private int endPosition
Constructor Detail |
public SimpleCodePiece(StringBuffer t, int lne, int sp, int ep)
t
- the textlne
- the linesp
- the start positionep
- the end positionpublic SimpleCodePiece(antlr.Token token)
token
- the given tokenMethod Detail |
public StringBuffer getText()
getText
in class CodePiece
CodePiece.getText()
public int getStartPosition()
getStartPosition
in class CodePiece
CodePiece.getStartPosition()
public int getEndPosition()
getEndPosition
in class CodePiece
CodePiece.getEndPosition()
public int getStartLine()
getStartLine
in class CodePiece
CodePiece.getStartLine()
public int getEndLine()
getEndLine
in class CodePiece
CodePiece.getEndLine()
|
|||||||||||
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 |