public class DefaultCodeBuilder extends java.lang.Object implements CodeBuilder
Modifier and Type | Class and Description |
---|---|
class |
DefaultCodeBuilder.BaseCaller |
static class |
DefaultCodeBuilder.BaseCode |
static class |
DefaultCodeBuilder.BaseCodes |
static class |
DefaultCodeBuilder.BaseIdentifier |
static class |
DefaultCodeBuilder.BaseMethod |
static interface |
DefaultCodeBuilder.RecursionControlSupport |
Modifier and Type | Field and Description |
---|---|
protected ExpressionEvaluatorManager |
manager |
Constructor and Description |
---|
DefaultCodeBuilder(ExpressionEvaluatorManager manager) |
Modifier and Type | Method and Description |
---|---|
Code |
$HostExpression(Code obj) |
Code |
$HostExpression(Code obj,
java.lang.String mode_specifier) |
Code |
add(Code op1,
Code op2) |
Code |
and(Code op1,
Code op2) |
DefaultCodeBuilder.BaseCodes |
args() |
Code |
between(Code value1,
Code value2,
Code value3) |
Code.Callable |
block(Code... codes) |
CodeBuilder |
clone()
Creates a copy of the object.
|
Code |
concat(Code op1,
Code op2) |
Code.Constant |
constant(java.lang.Object value) |
Code |
dict(java.util.Map<java.lang.String,Code> map) |
Code |
div(Code op1,
Code op2) |
Code |
eq(Code op1,
Code op2) |
Code.Callable |
function(java.lang.String name,
Codes args) |
Code.Callable |
function(java.lang.String name,
int type,
Codes args) |
Code |
ge(Code op1,
Code op2) |
Code |
getattr(Code obj,
java.lang.String attrname) |
Code |
getitem(Code obj,
Code index) |
Code |
gt(Code op1,
Code op2) |
Code.Identifier |
identifier(java.lang.String name) |
Code |
ilike(Code op1,
Code op2) |
Code |
in(Code value1,
Code value2) |
Code |
is(Code op1,
Code op2) |
Code |
le(Code op1,
Code op2) |
Code |
let(java.lang.String identifier,
Code value) |
Code |
like(Code op1,
Code op2) |
Code |
lt(Code op1,
Code op2) |
Code |
method(Code instance,
java.lang.String methodname,
Codes methodargs) |
Code |
mod(Code op1,
Code op2) |
Code |
mult(Code op1,
Code op2) |
Code |
ne(Code op1,
Code op2) |
Code |
negate(Code op1) |
Code |
not(Code op1) |
Code.Callable |
operator(java.lang.String name,
Code arg1) |
Code.Callable |
operator(java.lang.String name,
Code arg1,
Code arg2) |
Code |
or(Code op1,
Code op2) |
Code |
regexp(Code op1,
Code op2) |
Code |
subst(Code op1,
Code op2) |
Code.Callable |
tuple() |
Code.Callable |
tuple(Code... items) |
Code.Callable |
tuple(Codes args) |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cloneQuietly, cloneQuietly
protected ExpressionEvaluatorManager manager
public DefaultCodeBuilder(ExpressionEvaluatorManager manager)
public CodeBuilder clone() throws java.lang.CloneNotSupportedException
Cloneable
clone
in interface CodeBuilder
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
- if the instance of the object cannot
be cloned. As this is extending Cloneable
so its sure
it implements it, so this exception may be used for problems on specific
object instances.Object#clone()}.
public Code.Constant constant(java.lang.Object value)
constant
in interface CodeBuilder
public Code.Identifier identifier(java.lang.String name)
identifier
in interface CodeBuilder
public DefaultCodeBuilder.BaseCodes args()
args
in interface CodeBuilder
public Code.Callable tuple()
tuple
in interface CodeBuilder
public Code.Callable tuple(Codes args)
tuple
in interface CodeBuilder
public Code.Callable tuple(Code... items)
tuple
in interface CodeBuilder
public Code.Callable function(java.lang.String name, int type, Codes args)
function
in interface CodeBuilder
public Code.Callable function(java.lang.String name, Codes args)
function
in interface CodeBuilder
public Code method(Code instance, java.lang.String methodname, Codes methodargs)
method
in interface CodeBuilder
public Code.Callable operator(java.lang.String name, Code arg1)
operator
in interface CodeBuilder
public Code.Callable operator(java.lang.String name, Code arg1, Code arg2)
operator
in interface CodeBuilder
public Code not(Code op1)
not
in interface CodeBuilder
public Code negate(Code op1)
negate
in interface CodeBuilder
public Code concat(Code op1, Code op2)
concat
in interface CodeBuilder
public Code let(java.lang.String identifier, Code value)
let
in interface CodeBuilder
public Code add(Code op1, Code op2)
add
in interface CodeBuilder
public Code subst(Code op1, Code op2)
subst
in interface CodeBuilder
public Code mult(Code op1, Code op2)
mult
in interface CodeBuilder
public Code div(Code op1, Code op2)
div
in interface CodeBuilder
public Code mod(Code op1, Code op2)
mod
in interface CodeBuilder
public Code or(Code op1, Code op2)
or
in interface CodeBuilder
public Code and(Code op1, Code op2)
and
in interface CodeBuilder
public Code like(Code op1, Code op2)
like
in interface CodeBuilder
public Code ilike(Code op1, Code op2)
ilike
in interface CodeBuilder
public Code regexp(Code op1, Code op2)
regexp
in interface CodeBuilder
public Code lt(Code op1, Code op2)
lt
in interface CodeBuilder
public Code gt(Code op1, Code op2)
gt
in interface CodeBuilder
public Code le(Code op1, Code op2)
le
in interface CodeBuilder
public Code ge(Code op1, Code op2)
ge
in interface CodeBuilder
public Code eq(Code op1, Code op2)
eq
in interface CodeBuilder
public Code ne(Code op1, Code op2)
ne
in interface CodeBuilder
public Code is(Code op1, Code op2)
is
in interface CodeBuilder
public Code getattr(Code obj, java.lang.String attrname)
getattr
in interface CodeBuilder
public Code getitem(Code obj, Code index)
getitem
in interface CodeBuilder
public Code dict(java.util.Map<java.lang.String,Code> map)
dict
in interface CodeBuilder
public Code $HostExpression(Code obj, java.lang.String mode_specifier)
$HostExpression
in interface CodeBuilder
public Code $HostExpression(Code obj)
$HostExpression
in interface CodeBuilder
public Code.Callable block(Code... codes)
block
in interface CodeBuilder
public Code in(Code value1, Code value2)
in
in interface CodeBuilder