public class CompileBuildObject
extends java.lang.Object
(TYPE carg1 ... cargK key1: karg1 ... keyL: kargL carg1 ... cargM)to:
tmp = new TYPE(carg1, ..., cargK); tmp.setKey1(karg1); ... tmp.setKeyM(kargM); tmp.add(carg1); ... tmp.add(cargM); return tmp;Methods in this class can be overridden in various ways to provide custom mappings. This is a work in progress.
| Constructor and Description |
|---|
CompileBuildObject() |
| Modifier and Type | Method and Description |
|---|---|
Expression |
build() |
Expression |
buildAddChild(Declaration target,
Expression child) |
Expression |
buildSetter(Declaration target,
Member member,
Expression value) |
Member |
findNamedMember(java.lang.String name) |
Compilation |
getCompilation() |
PrimProcedure |
getDefaultConstructor() |
Language |
getLanguage() |
ObjectType |
getResultType() |
boolean |
hasAddChildMethod() |
boolean |
hasDefaultConstructor() |
static CompileBuildObject |
make(ApplyExp exp,
InlineCalls visitor,
Type required,
int keywordStart,
ObjectType ctype,
ClassType caller) |
boolean |
resultTypeExtends(java.lang.Class other) |
boolean |
resultTypeExtends(ObjectType other) |
void |
setDefaultConstructor(PrimProcedure proc) |
public Compilation getCompilation()
public Language getLanguage()
public ObjectType getResultType()
public boolean resultTypeExtends(ObjectType other)
public boolean resultTypeExtends(java.lang.Class other)
public static CompileBuildObject make(ApplyExp exp, InlineCalls visitor, Type required, int keywordStart, ObjectType ctype, ClassType caller)
public void setDefaultConstructor(PrimProcedure proc)
public PrimProcedure getDefaultConstructor()
public boolean hasDefaultConstructor()
public boolean hasAddChildMethod()
public Member findNamedMember(java.lang.String name)
public Expression buildSetter(Declaration target, Member member, Expression value)
public Expression buildAddChild(Declaration target, Expression child)
public Expression build()