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 AddOp
MINUS
static AddOp
PLUS
-
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 Object
apply2(int plusOrMinus, Object arg1, Object arg2)
static Object
applyN(int plusOrMinus, Object[] args)
static Object
applyN(int plusOrMinus, Object init, Object[] args)
Object
applyN(Object[] args)
static Object
MINUS(Object arg1)
static Object
MINUS(Object arg1, Object arg2)
static Object
MINUS$V(Object arg1, Object arg2, Object arg3, Object[] rest)
int
numArgs()
ReturnminArgs()|(maxArgs<<12)
.static Object
PLUS(Object arg1, Object arg2)
static Object
PLUS$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:Procedure
ReturnminArgs()|(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.
-
-