public class ExtensionsConsole extends FieldConsole
Modifier and Type | Class and Description |
---|---|
class |
ExtensionsConsole.PrintfFunction
Class to add a print function.
|
class |
ExtensionsConsole.PrintFunction
Class to add a print function.
|
FieldConsole.AllToComplesDecerator, FieldConsole.BigDecPFMC, FieldConsole.DoublePFMC, FieldConsole.RationalBigDecToDoubleDecerator, FieldConsole.RationalDoubleNumberFactory, FieldConsole.RationalPFMC, FieldConsole.RationalToBigDecDecerator, FieldConsole.Type
Console.JepPrintStream, Console.SPEC_ACTION
java.applet.Applet.AccessibleApplet
baseField, decimalFormat, fields, funTab, mc, numf, opTab, type, varFac, varTab
doubleFormat, history, jep, showHistory, ta
Constructor and Description |
---|
ExtensionsConsole() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getPrompt()
Prints the prompt string.
|
void |
initialise()
sets up all the needed objects.
|
static void |
main(java.lang.String[] args)
Creates a new Console object and calls run()
|
void |
printHelp()
Print help message.
|
void |
printIntroText()
Prints introductory text.
|
java.lang.Object |
processEquation(Node node)
Performs the required operation on a node.
|
Console.SPEC_ACTION |
testSpecialCommands(java.lang.String command)
Checks for special commands.
|
java.lang.String |
toString(java.lang.Object o)
Return string representation of object.
|
initBigDec, initBigInt, initComplex, initDouble, initExactInteger, initInteger, initMixed, initRational, initStandard, setFormat
getAppletInfo, getCommand, handleError, init, inputLoop, keyPressed, keyReleased, keyTyped, print, printFuns, println, printOps, printStdHelp, printVars, processCommand, run, setAlteredCommand, setFormat, split
destroy, getAccessibleContext, getAppletContext, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, isActive, isValidateRoot, newAudioClip, play, play, resize, resize, setStub, showStatus, start, stop
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, setLayout, transferFocusDownCycle, update, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public void initialise()
Console
initialise
in class FieldConsole
public void printIntroText()
Console
printIntroText
in class Console
public void printHelp()
Console
printHelp
in class FieldConsole
public java.lang.String getPrompt()
Console
public Console.SPEC_ACTION testSpecialCommands(java.lang.String command)
Console
verbose onThis method can be used detected this input, perform required actions and skip normal processing by returning true. In general sub classes should call the superclass methods to test for special commands that class implements
testSpecialCommands
in class FieldConsole
Console.split(String)
public java.lang.Object processEquation(Node node) throws JepException
Console
processEquation
in class Console
node
- Node representing expressionJepException
- if a Parse or evaluation errorpublic java.lang.String toString(java.lang.Object o)
Console
toString
in class FieldConsole
public static void main(java.lang.String[] args)
Copyright © 2018 Singular Systems http://www.singularsys.com/jep