|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.uni_paderborn.fujaba.codegen.OOGenToken
0..1 0..1
OOGenToken --------------------------------------- ASGElement
firstOOGenToken firstAsgElement
0..1 0..1
OOGenToken ------------------------------------- ASGElement
lastOOGenToken lastAsgElement
n hasStatements 0..1
OOStatement -------------------------------- OOGenToken
statement {ordered,} token
0..1 0..1
OOGenToken --------------------------------- OOGenToken
prev next
| Field Summary | |
static int |
FILEFOOT
No comment provided by developer, please add a comment to improve documentation. |
static int |
FILEHEADER
No comment provided by developer, please add a comment to improve documentation. |
static int |
FIRST
No comment provided by developer, please add a comment to improve documentation. |
static int |
LAST
No comment provided by developer, please add a comment to improve documentation. |
static int |
UNUSED
No comment provided by developer, please add a comment to improve documentation. |
| Constructor Summary | |
OOGenToken()
Constructor for class OOGenToken |
|
OOGenToken(OOStatement statement)
Constructor for class OOGenToken |
|
OOGenToken(OOStatement statement,
java.lang.String sectionName)
Constructor for class OOGenToken |
|
| Method Summary | |
boolean |
addToStatement(OOStatement value)
|
void |
append(OOGenToken newToken)
Inserts the new token behind me. before: prevElement <---> this <---> nextElement after : prevElement <---> this <---> newToken <---> nextElement |
void |
appendStatement(java.lang.Object value)
No comment provided by developer, please add a comment to improve documentation. |
boolean |
appendStatement(OOStatement value)
|
void |
appendStatement(OOStatement[] values)
append all statements |
static OOGenToken |
createFirstToken()
No comment provided by developer, please add a comment to improve documentation. |
static OOGenToken |
createGeneratedToken()
No comment provided by developer, please add a comment to improve documentation. |
static OOGenToken |
createLastToken()
No comment provided by developer, please add a comment to improve documentation. |
static OOGenToken |
createNewList(OOGenToken prevToken)
Creates a new token pair for with explicite first and last token and inserts it in the list behind prevToken before: prevElement <---> nextElement after : prevElement <---> this <---> nextElement |
static void |
cutAndPaste(OOGenToken firstToken,
OOGenToken lastToken,
OOGenToken prevToken)
Cuts all tokens from firstToken to lastToken out of the list and inserts them behind prevToken. |
void |
deleteToSection(java.lang.String sectionName,
OOGenToken lastToken)
Returns the token in front of the specified section and deletes all tokens on the way are deleted. |
OOGenToken |
findSection(java.lang.String sectionName)
No comment provided by developer, please add a comment to improve documentation. |
OOGenToken |
getBottomToken(java.lang.String sectionName)
Get the bottomToken attribute of the OOGenToken object |
ASGElement |
getFirstAsgElement()
|
OOStatement |
getFirstOfStatement()
|
ASGElement |
getLastAsgElement()
|
OOStatement |
getLastOfStatement()
|
OOGenToken |
getNext()
Get the next attribute of the OOGenToken object |
OOStatement |
getNextIndexOfStatement(OOStatement object,
int index)
|
OOStatement |
getNextOfStatement(OOStatement object)
|
OOGenToken |
getNextOrAppend(java.lang.String sectionName,
OOGenToken lastToken)
Gets the next token in the section or creates a new one behind me. |
OOGenToken |
getPrev()
Get the prev attribute of the OOGenToken object |
OOStatement |
getPreviousIndexOfStatement(OOStatement object,
int index)
|
OOStatement |
getPreviousOfStatement(OOStatement object)
|
java.lang.String |
getSectionName()
Get the sectionName attribute of the OOGenToken object |
java.lang.String |
getSourceCode()
Get the sourceCode attribute of the OOGenToken object |
static java.lang.String |
getSourceCodeForTokens(OOGenToken token,
OOGenToken stop)
Get the sourceCodeForTokens attribute of the OOGenToken class |
int |
getStartColumn()
Get the startColumn attribute of the OOGenToken object |
int |
getStartRow()
Get the startRow attribute of the OOGenToken object |
OOStatement |
getStatementAt(int index)
|
OOGenToken |
getTopToken(java.lang.String sectionName)
Get the topToken attribute of the OOGenToken object |
boolean |
hasInStatement(OOStatement value)
|
int |
indexOfStatement(OOStatement elem)
|
OOGenToken |
insertNewToken(java.lang.String sectionName)
No comment provided by developer, please add a comment to improve documentation. |
java.lang.String |
insertTopAndBottomToken(java.lang.String sectionName)
Creates two new tokens behind the current and sets the section name of the first to 'sectionName'Top and of the last to 'sectionName'Bottom. |
boolean |
isAfterOfStatement(OOStatement leftObject,
OOStatement rightObject)
|
boolean |
isBeforeOfStatement(OOStatement leftObject,
OOStatement rightObject)
|
boolean |
isFirstToken()
Get the firstToken attribute of the OOGenToken object |
boolean |
isLastToken()
Get the lastToken attribute of the OOGenToken object |
java.util.Iterator |
iteratorOfStatement()
|
java.util.Iterator |
iteratorOfStatement(OOStatement lowerBound)
|
int |
lastIndexOfStatement(OOStatement elem)
|
java.lang.String |
newSection(java.lang.String section,
OOGenToken lastToken)
Starts the new section |
void |
prepend(OOGenToken newToken)
Inserts the new token in front of me. before: prevElement <---> this <---> nextElement after : prevElement <---> newToken <---> this <---> nextElement |
boolean |
prependStatement(OOStatement value)
|
void |
removeAllFromStatement()
|
boolean |
removeFromStatement(OOStatement value)
|
void |
removeYou()
Isolates the object so the garbage collector can remove it. |
void |
removeYouFromList()
Removes this element from the list. before: prevElement <---> this <---> nextElement after : prevElement <--------------> nextElement this |
boolean |
setFirstAsgElement(ASGElement value)
|
boolean |
setLastAsgElement(ASGElement value)
|
void |
setNext(OOGenToken next)
Sets the next attribute of the OOGenToken object |
void |
setPrev(OOGenToken prev)
Sets the prev attribute of the OOGenToken object |
java.lang.String |
setSectionName(java.lang.String sectionName)
Sets the sectionName attribute of the OOGenToken object |
int |
setStartColumn(int startColumn)
Sets the startColumn attribute of the OOGenToken object |
int |
setStartRow(int startRow)
Sets the startRow attribute of the OOGenToken object |
void |
showStatements()
No comment provided by developer, please add a comment to improve documentation. |
static void |
showStatements(OOGenToken token)
No comment provided by developer, please add a comment to improve documentation. |
int |
sizeOfStatement()
|
OOGenToken |
skipSection(java.lang.String sectionName,
OOGenToken lastToken)
Return the last token of the section named sectionName. |
OOGenToken |
skipToPrevNextFirstToken(OOGenToken lastToken)
Returns the token just in front of the next Firsttoken or in front of the lastToken. |
java.lang.String |
toString()
|
java.lang.String |
toString(int width)
No comment provided by developer, please add a comment to improve documentation. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final transient int FIRST
public static final transient int LAST
public static final transient int UNUSED
public static final transient int FILEHEADER
public static final transient int FILEFOOT
| Constructor Detail |
public OOGenToken()
public OOGenToken(OOStatement statement)
statement - No description provided
public OOGenToken(OOStatement statement,
java.lang.String sectionName)
statement - No description providedsectionName - No description provided| Method Detail |
public boolean isFirstToken()
public boolean isLastToken()
public static final OOGenToken createFirstToken()
public static final OOGenToken createLastToken()
public static final OOGenToken createGeneratedToken()
public static OOGenToken createNewList(OOGenToken prevToken)
prevToken - indicates the position in the list
append(de.uni_paderborn.fujaba.codegen.OOGenToken),
prepend(de.uni_paderborn.fujaba.codegen.OOGenToken)public static void showStatements(OOGenToken token)
token - No description providedpublic void showStatements()
public java.lang.String getSourceCode()
public static java.lang.String getSourceCodeForTokens(OOGenToken token,
OOGenToken stop)
token - No description providedstop - No description provided
public java.lang.String getSectionName()
public java.lang.String setSectionName(java.lang.String sectionName)
sectionName - The new sectionName value
public java.lang.String toString(int width)
width - No description provided
public int getStartRow()
public int setStartRow(int startRow)
startRow - The new startRow value
public int getStartColumn()
public int setStartColumn(int startColumn)
startColumn - The new startColumn value
public OOGenToken getPrev()
public void setPrev(OOGenToken prev)
prev - The new prev valuepublic OOGenToken getNext()
public void setNext(OOGenToken next)
next - The new next valuepublic boolean setFirstAsgElement(ASGElement value)
value - The new firstAsgElement value
#firstAsgElementpublic ASGElement getFirstAsgElement()
#firstAsgElementpublic boolean setLastAsgElement(ASGElement value)
value - The new lastAsgElement value
#lastAsgElementpublic ASGElement getLastAsgElement()
#lastAsgElementpublic boolean hasInStatement(OOStatement value)
value - No description provided
#statementpublic java.util.Iterator iteratorOfStatement()
#statementpublic int sizeOfStatement()
#statementpublic boolean addToStatement(OOStatement value)
value - The object added.
#statementpublic boolean prependStatement(OOStatement value)
value - No description provided
#statementpublic void appendStatement(java.lang.Object value)
value - No description providedpublic void appendStatement(OOStatement[] values)
values - an OOStatement[] valuepublic boolean appendStatement(OOStatement value)
value - No description provided
#statementpublic boolean removeFromStatement(OOStatement value)
value - No description provided
#statementpublic void removeAllFromStatement()
#statementpublic OOStatement getStatementAt(int index)
index - No description provided
#statementpublic int indexOfStatement(OOStatement elem)
elem - No description provided
#statementpublic int lastIndexOfStatement(OOStatement elem)
elem - No description provided
#statementpublic java.util.Iterator iteratorOfStatement(OOStatement lowerBound)
lowerBound - No description provided
#statement
public boolean isBeforeOfStatement(OOStatement leftObject,
OOStatement rightObject)
leftObject - No description providedrightObject - No description provided
#statement
public boolean isAfterOfStatement(OOStatement leftObject,
OOStatement rightObject)
leftObject - No description providedrightObject - No description provided
#statementpublic OOStatement getFirstOfStatement()
#statementpublic OOStatement getLastOfStatement()
#statementpublic OOStatement getNextOfStatement(OOStatement object)
object - No description provided
#statement
public OOStatement getNextIndexOfStatement(OOStatement object,
int index)
object - No description providedindex - No description provided
#statementpublic OOStatement getPreviousOfStatement(OOStatement object)
object - No description provided
#statement
public OOStatement getPreviousIndexOfStatement(OOStatement object,
int index)
object - No description providedindex - No description provided
#statementpublic OOGenToken findSection(java.lang.String sectionName)
sectionName - No description provided
public OOGenToken skipSection(java.lang.String sectionName,
OOGenToken lastToken)
sectionName - the name of the new sectionlastToken - marks the end
public OOGenToken skipToPrevNextFirstToken(OOGenToken lastToken)
lastToken - marks the end
public void deleteToSection(java.lang.String sectionName,
OOGenToken lastToken)
sectionName - the name of the new sectionlastToken - the last token in the current list
public java.lang.String newSection(java.lang.String section,
OOGenToken lastToken)
section - the name of the new sectionlastToken - the last token of the list
public java.lang.String insertTopAndBottomToken(java.lang.String sectionName)
sectionName - the name of the section
public OOGenToken getTopToken(java.lang.String sectionName)
sectionName - No description provided
public OOGenToken getBottomToken(java.lang.String sectionName)
sectionName - No description provided
public OOGenToken insertNewToken(java.lang.String sectionName)
sectionName - No description provided
public OOGenToken getNextOrAppend(java.lang.String sectionName,
OOGenToken lastToken)
sectionName - the name of the sectionlastToken - the last token in the current list
public static void cutAndPaste(OOGenToken firstToken,
OOGenToken lastToken,
OOGenToken prevToken)
firstToken - marks the first token in the listlastToken - marks the last token in the listprevToken - marks the new position for the listpublic void append(OOGenToken newToken)
newToken - the new token to insert in the listpublic void prepend(OOGenToken newToken)
newToken - the new token to insert in the listpublic void removeYouFromList()
public java.lang.String toString()
public void removeYou()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||