Package gnu.kawa.functions
Class GetNamedInstancePart
- java.lang.Object
-
- gnu.mapping.PropertySet
-
- gnu.mapping.Procedure
-
- gnu.mapping.ProcedureN
-
- gnu.kawa.functions.GetNamedInstancePart
-
- All Implemented Interfaces:
HasSetter
,Named
,Externalizable
,Serializable
public class GetNamedInstancePart extends ProcedureN implements Externalizable, HasSetter
The value of the Kawa Scheme expression '*:PART-NAME'. This function invokes a method or accesses a field, if the PART-NAME starts with a '.'. This syntax is semi-deprecated, since instead of (*:method-name instance args ...) you can now write (instance:method-name args ...), and instead of (*:.field-name instance) you can write instance:field-name (without the parentheses).- See Also:
- Serialized Form
-
-
Field Summary
-
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
-
-
Constructor Summary
Constructors Constructor Description GetNamedInstancePart()
GetNamedInstancePart(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
applyN(Object[] args)
Procedure
getSetter()
int
numArgs()
ReturnminArgs()|(maxArgs<<12)
.void
readExternal(ObjectInput in)
void
setPartName(String name)
void
writeExternal(ObjectOutput out)
-
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, getSourceLocation, isSideEffectFree, 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
-
GetNamedInstancePart
public GetNamedInstancePart()
-
GetNamedInstancePart
public GetNamedInstancePart(String name)
-
-
Method Detail
-
setPartName
public void setPartName(String name)
-
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.
-
getSetter
public Procedure getSetter()
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-
-