Package gnu.kawa.functions
Class AddOp
- java.lang.Object
-
- gnu.mapping.PropertySet
-
- gnu.mapping.Procedure
-
- gnu.mapping.ProcedureN
-
- gnu.kawa.functions.ArithOp
-
- gnu.kawa.functions.AddOp
-
-
Field Summary
Fields Modifier and Type Field Description static AddOpMINUSstatic AddOpPLUS-
Fields inherited from class gnu.kawa.functions.ArithOp
AND, ASHIFT_GENERAL, ASHIFT_LEFT, ASHIFT_RIGHT, DIVIDE_GENERIC, DIVIDE_INEXACT, IOR, LSHIFT_RIGHT, MODULO, NOT, QUOTIENT, QUOTIENT_EXACT, XOR
-
Fields inherited from class gnu.mapping.ProcedureN
applyToObject, noArgs
-
Fields inherited from class gnu.mapping.Procedure
applyMethodType, applyToConsumerDefault, applyToConsumerMethod, applyToObjectDefault, applyToObjectMethod, compilerKey, compilerXKey, inlineIfConstantSymbol, validateApplyKey, validateXApplyKey
-
Fields inherited from class gnu.mapping.PropertySet
nameKey
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Objectapply2(int plusOrMinus, Object arg1, Object arg2)static ObjectapplyN(int plusOrMinus, Object[] args)static ObjectapplyN(int plusOrMinus, Object init, Object[] args)ObjectapplyN(Object[] args)static ObjectMINUS(Object arg1)static ObjectMINUS(Object arg1, Object arg2)static ObjectMINUS$V(Object arg1, Object arg2, Object arg3, Object[] rest)intnumArgs()ReturnminArgs()|(maxArgs<<12).static ObjectPLUS(Object arg1, Object arg2)static ObjectPLUS$V(Object arg1, Object arg2, Object arg3, Object[] rest)-
Methods inherited from class gnu.kawa.functions.ArithOp
defaultResult, isSideEffectFree
-
Methods inherited from class gnu.mapping.ProcedureN
applyToObject
-
Methods inherited from class gnu.mapping.Procedure
apply0, apply1, apply2, apply3, apply4, applyL, applyToConsumerDefault, applyToObjectDefault, checkArgCount, checkBadCode, getApplyMethod, getApplyToConsumerMethod, getApplyToObjectMethod, getReturnType, getSetter, getSourceLocation, lookupApplyHandle, maxArgs, maxArgs, minArgs, minArgs, set0, set1, setN, setSetter, setSourceLocation, toString
-
Methods inherited from class gnu.mapping.PropertySet
getName, getProperty, getSymbol, removeProperty, setName, setProperty, setProperty, setSymbol
-
-
-
-
Constructor Detail
-
AddOp
public AddOp(String name, int plusOrMinus)
-
-
Method Detail
-
numArgs
public int numArgs()
Description copied from class:ProcedureReturnminArgs()|(maxArgs<<12). We use a single virtual function to reduce the number of methods in the system, as well as the number of virtual method table entries. We shift by 12 so the number can normally be represented using a sipush instruction, without requiring a constant pool entry.
-
-