Package gnu.kawa.functions
Class GetNamedPart
- java.lang.Object
-
- gnu.mapping.PropertySet
-
- gnu.mapping.Procedure
-
- gnu.mapping.Procedure2
-
- gnu.kawa.functions.GetNamedPart
-
public class GetNamedPart extends Procedure2 implements HasSetter
Procedure to get the value of a named component of an object.
-
-
Field Summary
Fields Modifier and Type Field Description static StringCAST_METHOD_NAMEPseudo-method-name for the cast operation.static StringCLASSTYPE_FORPREFIX:<>is equivalent to theClassTypebound toPREFIX.static GetNamedPartgetNamedPartstatic StringINSTANCEOF_METHOD_NAMEPseudo-method-name for class-membership-test (instanceof) operation.-
Fields inherited from class gnu.mapping.Procedure2
applyToObject
-
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 GetNamedPart()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectapply2(Object container, Object part)static ObjectgetMemberPart(Object container, String name)static ObjectgetNamedPart(Object container, Symbol part)ProceduregetSetter()static ObjectgetTypePart(Type type, String name)-
Methods inherited from class gnu.mapping.Procedure2
apply0, apply1, apply3, apply4, applyN, applyToObject, numArgs
-
Methods inherited from class gnu.mapping.Procedure
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
-
-
-
-
Field Detail
-
getNamedPart
public static final GetNamedPart getNamedPart
-
CLASSTYPE_FOR
public static final String CLASSTYPE_FOR
PREFIX:<>is equivalent to theClassTypebound toPREFIX.- See Also:
- Constant Field Values
-
CAST_METHOD_NAME
public static final String CAST_METHOD_NAME
Pseudo-method-name for the cast operation.- See Also:
- Constant Field Values
-
INSTANCEOF_METHOD_NAME
public static final String INSTANCEOF_METHOD_NAME
Pseudo-method-name for class-membership-test (instanceof) operation.- See Also:
- Constant Field Values
-
-
Method Detail
-
apply2
public Object apply2(Object container, Object part) throws Throwable
- Specified by:
apply2in classProcedure2- Throws:
Throwable
-
getTypePart
public static Object getTypePart(Type type, String name) throws Exception
- Throws:
Exception
-
getNamedPart
public static Object getNamedPart(Object container, Symbol part) throws Exception
- Throws:
Exception
-
getMemberPart
public static Object getMemberPart(Object container, String name) throws Exception
- Throws:
Exception
-
-