Skip navigation links


com.essbase.eas.ui.editor.misc
Class StatementCommands

java.lang.Object
  extended by com.essbase.eas.ui.editor.misc.StatementCommands

All Implemented Interfaces:
StatementParser, java.io.Serializable
Direct Known Subclasses:
ScriptingCommands

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

Field Summary
protected  java.util.ArrayList commands
           
protected  char endOfLineCh
           

 

Constructor Summary
StatementCommands()
           

 

Method Summary
 void addCommand(StatementToken token)
          adds a child command
 void clearRegisteredCommands()
           
 StatementToken createCommand(java.lang.String name)
          creates the default command object
 java.lang.String exportXml()
           
 boolean exportXml(java.io.File file)
           
 java.lang.Object[] getCommands()
           
 java.util.Hashtable getCommandTable()
           
 char getEndOfLineChar()
           
 java.util.List getTokenList(java.util.List tokenList, java.lang.String text)
           
 java.util.List getTokenList(java.lang.String text)
           
 void insertCommand(int index, StatementToken token)
           
protected  EditToken newEditToken(java.lang.String command)
           
 boolean removeCommand(StatementToken token)
           
protected  void resetParent()
           
 java.lang.String setCurrentStatement(StatementContext context)
          Returns the current statement based on the cursor
 void setEndOfLineChar(char ch)
           
 void setLastStatementToken(StatementContext context)
          Get the last command token representing the current statement syntax
 void setOptions(StatementContext context)
          Get the valid options from the last ommand token to be shown
 void setTokenList(StatementContext context)
          breaks up the statement into a list of tokens
 void showOptions(StatementContext context)
          Shows the options
 void writeKeywordsToFile()
           

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

commands

protected java.util.ArrayList commands

endOfLineCh

protected char endOfLineCh

Constructor Detail

StatementCommands

public StatementCommands()

Method Detail

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, 2012, Oracle. All rights reserved.