Skip navigation links
com.essbase.eas.ui.editor.misc
Class StatementCommands
java.lang.Object
com.essbase.eas.ui.editor.misc.StatementCommands
- All Implemented Interfaces:
- StatementParser, java.io.Serializable
-
public class StatementCommands
- extends java.lang.Object
- implements StatementParser, java.io.Serializable
Title: Description: Copyright: Copyright (c) 2001 Company: Hyperion Solutions Corporation
- Version:
- 1.0
- Author:
- Sree Menon
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
commands
protected java.util.ArrayList commands
endOfLineCh
protected char endOfLineCh
StatementCommands
public StatementCommands()
getCommandTable
public java.util.Hashtable getCommandTable()
clearRegisteredCommands
public void clearRegisteredCommands()
setLastStatementToken
public void setLastStatementToken(StatementContext context)
- Description copied from interface:
StatementParser
- Get the last command token representing the current statement syntax
-
- Specified by:
setLastStatementToken
in interface StatementParser
setOptions
public void setOptions(StatementContext context)
- Description copied from interface:
StatementParser
- Get the valid options from the last ommand token to be shown
-
- Specified by:
setOptions
in interface StatementParser
setCurrentStatement
public java.lang.String setCurrentStatement(StatementContext context)
- Description copied from interface:
StatementParser
- Returns the current statement based on the cursor
-
- Specified by:
setCurrentStatement
in interface StatementParser
setTokenList
public void setTokenList(StatementContext context)
- Description copied from interface:
StatementParser
- breaks up the statement into a list of tokens
-
- Specified by:
setTokenList
in interface StatementParser
getTokenList
public java.util.List getTokenList(java.lang.String text)
newEditToken
protected EditToken newEditToken(java.lang.String command)
getTokenList
public java.util.List getTokenList(java.util.List tokenList,
java.lang.String text)
showOptions
public void showOptions(StatementContext context)
- Shows the options
-
- Specified by:
showOptions
in interface StatementParser
addCommand
public void addCommand(StatementToken token)
- Description copied from interface:
StatementParser
- adds a child command
-
- Specified by:
addCommand
in interface StatementParser
-
- Parameters:
token
- command to add
removeCommand
public boolean removeCommand(StatementToken token)
insertCommand
public void insertCommand(int index,
StatementToken token)
createCommand
public StatementToken createCommand(java.lang.String name)
- creates the default command object
-
- Specified by:
createCommand
in interface StatementParser
-
- Parameters:
name
- the name of the command
- Returns:
- the created command
setEndOfLineChar
public void setEndOfLineChar(char ch)
-
- Specified by:
setEndOfLineChar
in interface StatementParser
getEndOfLineChar
public char getEndOfLineChar()
-
- Specified by:
getEndOfLineChar
in interface StatementParser
resetParent
protected void resetParent()
getCommands
public java.lang.Object[] getCommands()
exportXml
public boolean exportXml(java.io.File file)
exportXml
public java.lang.String exportXml()
writeKeywordsToFile
public void writeKeywordsToFile()
Skip navigation links
Copyright © 2001, 2007, Oracle. All rights reserved.