Example:
builder.getClassForInheritance().equal(SmallProject.class); builder.anyOf("projects").getClassForInheritance().equal(builder.getParameter("projectClass"));
3940414243444546474849
* Generate the a new EclipseLink TableEntryExpression for this node. */ public Expression generateExpression(GenerationContext context) { Expression owningExpression = getLeft().generateExpression(context); return owningExpression.type(); } public void validate(ParseTreeContext context) { left.validate(context); setType(Class.class);
4041424344454647484950
316317318319320321322323324325326
@Override public Expression twistedForBaseAndContext(Expression newBase, Expression context, Expression oldBase) { if (oldBase == null || this.baseExpression == oldBase) { Expression twistedBase = this.baseExpression.twistedForBaseAndContext(newBase, context, oldBase); return twistedBase.type(); } return this; } }