|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StatementToken
Title: Description: Copyright: Copyright (c) 2001 Company: Hyperion Solutions Corporation
Method Summary | |
---|---|
void |
addCommand(StatementToken command) adds next set of token commands |
void |
addCommandOptions(java.util.List list) This will add any options the command has |
void |
addOptions(StatementContext context) adds the options available for this command token |
void |
canceledCommand(TextEditor editor, int startoffset) invoked when the user cancels a command; |
java.lang.String |
getAttribute(java.lang.Object key) gets the attribute |
java.lang.String |
getEndOfStatement() Returns the string that represents the end of statement |
StatementToken |
getLastStatementToken(StatementContext context, int startindex) getLastStatementToken is a forward traversal of the list looking for the last token |
java.lang.String |
getName() Returns the name of the Token |
java.lang.Object |
getParent() |
boolean |
hasKey(java.lang.Object key) |
int |
isCommand(StatementContext context) Given a token list, returns whether it represent the command 0 means its not and any other number means the number of tokens that make up the command |
boolean |
isLastToken() Returns true if its the last token of the command syntax |
boolean |
isOptional() returns true, if this command is an optional one |
int |
isToken(StatementContext context, int startindex) Returns the number of tokens matched by this command from the token list |
void |
put(java.lang.Object key, java.lang.Object value) puts an attribute |
void |
resetParent() Walks the children and reset their parent to be this |
void |
setCompleteText(StatementContext context, int startoffset) sets the completed word into the editor |
void |
setCompleteText(TextEditor editor, int startoffset) |
void |
setCompleteText(TextEditor editor, java.lang.String text, int startoffset) sets the completed word into the editor |
void |
setOptions(StatementContext context) Returns a list of options for a given command token |
void |
setParent(java.lang.Object parent) sets the token command's parent |
void |
setWordCompleteText(TextEditor editor, java.lang.String text, int startoffset) |
void |
showOptions(StatementContext context) Shows the options |
java.lang.String |
toString() gets the display string |
Method Detail |
---|
java.lang.String getName()
StatementToken getLastStatementToken(StatementContext context, int startindex)
tokenList
- is the list containing the tokens that forms the current statementstartindex
- is the token index to start processing the tokens from the listvoid setOptions(StatementContext context)
properties
-void addOptions(StatementContext context)
context
- statement contextjava.lang.String toString()
toString
in class java.lang.Object
boolean isLastToken()
java.lang.String getEndOfStatement()
int isToken(StatementContext context, int startindex)
void setCompleteText(StatementContext context, int startoffset)
void setCompleteText(TextEditor editor, int startoffset)
void setCompleteText(TextEditor editor, java.lang.String text, int startoffset)
void setWordCompleteText(TextEditor editor, java.lang.String text, int startoffset)
void canceledCommand(TextEditor editor, int startoffset)
void showOptions(StatementContext context)
boolean isOptional()
int isCommand(StatementContext context)
void put(java.lang.Object key, java.lang.Object value)
key
- attribute keyvalue
- attribute valuejava.lang.String getAttribute(java.lang.Object key)
key
- attribute keyvoid addCommand(StatementToken command)
command
- one of the next command that follows thisvoid setParent(java.lang.Object parent)
parent
- the parentvoid resetParent()
java.lang.Object getParent()
void addCommandOptions(java.util.List list)
list
-boolean hasKey(java.lang.Object key)
key
- usually a string object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |