gnu.kawa.functions

Class GetNamedPart

public class GetNamedPart extends Procedure2 implements HasSetter, CanInline

Procedure to get the value of a named component of an object.
Field Summary
static StringCAST_METHOD_NAME
Pseudo-method-name for the cast operation.
static StringCLASSTYPE_FOR
PREFIX:<> is equivalent to the ClassType bound to PREFIX.
static GetNamedPartgetNamedPart
static StringINSTANCEOF_METHOD_NAME
Pseudo-method-name for class-membership-test (instanceof) operation.
Method Summary
Objectapply2(Object container, Object part)
static StringcombineName(Expression part1, Expression part2)
static ObjectgetMemberPart(Object container, String name)
static ObjectgetNamedPart(Object container, Symbol part)
ProceduregetSetter()
static ObjectgetTypePart(Type type, String name)
Expressioninline(ApplyExp exp, ExpWalker walker)
static ExpressionmakeExp(Expression clas, Expression member)
static ExpressionmakeExp(Expression clas, String member)
static ExpressionmakeExp(Type type, String member)

Field Detail

CAST_METHOD_NAME

public static final String CAST_METHOD_NAME
Pseudo-method-name for the cast operation.

CLASSTYPE_FOR

public static final String CLASSTYPE_FOR
PREFIX:<> is equivalent to the ClassType bound to PREFIX.

getNamedPart

public static final GetNamedPart getNamedPart

INSTANCEOF_METHOD_NAME

public static final String INSTANCEOF_METHOD_NAME
Pseudo-method-name for class-membership-test (instanceof) operation.

Method Detail

apply2

public Object apply2(Object container, Object part)

combineName

public static String combineName(Expression part1, Expression part2)

getMemberPart

public static Object getMemberPart(Object container, String name)

getNamedPart

public static Object getNamedPart(Object container, Symbol part)

getSetter

public Procedure getSetter()

getTypePart

public static Object getTypePart(Type type, String name)

inline

public Expression inline(ApplyExp exp, ExpWalker walker)

makeExp

public static Expression makeExp(Expression clas, Expression member)

makeExp

public static Expression makeExp(Expression clas, String member)

makeExp

public static Expression makeExp(Type type, String member)