|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.concord.util.script.ScriptObject | +--org.concord.util.script.Expression | +--org.concord.util.script.BinaryExpression | +--org.concord.util.script.PlusExpression
The PlusExpression class implements the semantic node for multiply. The binOp method calculates for both Integer and Float by contagion. If either object is a Float then the whole expression will be a Float. Otherwise it will be an Integer. (Eventually these aritmetic semantic nodes will accomodate Double and Long and Short as well.) The plus operation also concatenates Strings.
Fields inherited from class org.concord.util.script.BinaryExpression |
args, ops |
Fields inherited from class org.concord.util.script.ScriptObject |
beginColumn, beginLine, debug, deleted, doConversion, endColumn, endLine, name, nil, runtimeTable, script |
Fields inherited from interface java.beans.BeanInfo |
ICON_COLOR_16x16, ICON_COLOR_32x32, ICON_MONO_16x16, ICON_MONO_32x32 |
Constructor Summary | |
PlusExpression()
|
Method Summary | |
java.lang.Object |
binOp(java.lang.Object op1,
java.lang.Object op2)
This method should be overridden by a derived class. |
java.lang.String |
operatorString()
|
Methods inherited from class org.concord.util.script.BinaryExpression |
addOperand, addOperation, delete, interpret |
Methods inherited from class org.concord.util.script.Expression |
interpret, toString |
Methods inherited from class org.concord.util.script.ScriptObject |
findConstructor, findMethod, getAdditionalBeanInfo, getArrayValue, getAtom, getBeanDescriptor, getCurrentFrame, getDefaultEventIndex, getDefaultPropertyIndex, getEventSetDescriptors, getField, getFieldValue, getIcon, getMethodDescriptors, getName, getPropertyDescriptors, getScript, popFrame, pushFrame, setArrayValue, setCurrentFrame, setFieldValue, setName, setScript, setSourceBounds |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public PlusExpression()
Method Detail |
public java.lang.Object binOp(java.lang.Object op1, java.lang.Object op2)
BinaryExpression
binOp
in class BinaryExpression
public java.lang.String operatorString()
operatorString
in class BinaryExpression
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |