Class CodegenExpressionBuilder
java.lang.Object
com.espertech.esper.common.internal.bytecodemodel.model.expression.CodegenExpressionBuilder
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic CodegenExpression
and
(CodegenExpression first, CodegenExpression second, CodegenExpression... more) static CodegenExpression
arrayAtIndex
(CodegenExpression expression, CodegenExpression index) static CodegenExpression
arrayLength
(CodegenExpression expression) static CodegenExpression
assign
(CodegenExpression lhs, CodegenExpression rhs) static CodegenExpression
cast
(EPTypeClass clazz, CodegenExpression expression) static CodegenExpression
cast
(String typeName, CodegenExpression expression) static CodegenExpression
castRef
(EPTypeClass clazz, String ref) static CodegenExpression
castUnderlying
(EPTypeClass clazz, CodegenExpression expression) static CodegenExpression
castUnderlying
(String clazz, CodegenExpression expression) static CodegenExpression
static CodegenExpression
concat
(CodegenExpression... stringExpressions) static CodegenExpression
conditional
(CodegenExpression condition, CodegenExpression expressionTrue, CodegenExpression expressionFalse) static CodegenExpression
static CodegenExpression
static CodegenExpression
static CodegenExpression
static CodegenExpression
decrement
(CodegenExpression expression) static CodegenExpression
decrementRef
(String ref) static CodegenExpression
static CodegenExpression
equalsIdentity
(CodegenExpression lhs, CodegenExpression rhs) static CodegenExpression
static CodegenExpression
exprDotMethod
(CodegenExpression expression, String method, CodegenExpression... params) exprDotMethodChain
(CodegenExpression expression) static CodegenExpressionExprDotName
exprDotName
(CodegenExpression left, String name) static CodegenExpression
exprDotUnderlying
(CodegenExpression expression) static CodegenExpressionField
field
(CodegenField field) static CodegenExpression
increment
(CodegenExpression expression) static CodegenExpression
incrementRef
(String ref) static CodegenExpression
instanceOf
(CodegenExpression lhs, EPTypeClass clazz) static CodegenExpressionLocalMethod
localMethod
(CodegenMethod methodNode, CodegenExpression... parameters) static CodegenLocalMethodBuilder
localMethodBuild
(CodegenMethod methodNode) static CodegenExpression
mapOfConstant
(Map<String, Object> constants) static CodegenExpressionMember
static CodegenExpressionMemberWCol
static void
mergeClassesExpressions
(Set<Class> classes, CodegenExpression[] expressions) newAnonymousClass
(CodegenBlock parentBlock, EPTypeClass interfaceOrSuperClass) newAnonymousClass
(CodegenBlock parentBlock, EPTypeClass interfaceOrSuperClass, List<CodegenExpression> ctorParams) static CodegenExpression
newArrayByLength
(EPTypeClass component, CodegenExpression expression) static CodegenExpression
newArrayWithInit
(EPTypeClass component, CodegenExpression... expressions) static CodegenExpression
newInstance
(EPTypeClass clazz, CodegenExpression... params) static CodegenExpression
newInstance
(String name, CodegenExpression... params) static CodegenExpression
noop()
static CodegenExpression
not
(CodegenExpression expression) static CodegenExpression
static CodegenExpression
notInstanceOf
(CodegenExpression lhs, EPTypeClass clazz) static CodegenExpression
notOptional
(boolean isNot, CodegenExpression expression) static CodegenExpression
op
(CodegenExpression left, String expressionText, CodegenExpression right) static CodegenExpression
or
(CodegenExpression first, CodegenExpression second, CodegenExpression... more) static CodegenExpression
publicConstValue
(EPTypeClass enumType, String enumValue) static CodegenExpression
publicConstValue
(Class enumType, String enumValue) static CodegenExpression
publicConstValue
(String enumType, String enumValue) static CodegenExpressionRef
static CodegenExpression
relational
(CodegenExpression lhs, CodegenExpressionRelational.CodegenRelational op, CodegenExpression rhs) static void
renderExpressions
(StringBuilder builder, CodegenExpression[] expressions, Map<Class, String> imports, boolean isInnerClass) static CodegenExpression
staticMethod
(Class clazz, String method, CodegenExpression... params) static CodegenExpression
staticMethod
(String clazz, String method, CodegenExpression... params) static void
traverseMultiple
(CodegenExpression[] expressions, Consumer<CodegenExpression> consumer) static void
traverseMultiple
(Collection<CodegenExpression> expressions, Consumer<CodegenExpression> consumer)
-
Constructor Details
-
CodegenExpressionBuilder
public CodegenExpressionBuilder()
-
-
Method Details
-
ref
-
member
-
memberCol
-
op
public static CodegenExpression op(CodegenExpression left, String expressionText, CodegenExpression right) -
and
public static CodegenExpression and(CodegenExpression first, CodegenExpression second, CodegenExpression... more) -
or
public static CodegenExpression or(CodegenExpression first, CodegenExpression second, CodegenExpression... more) -
concat
-
exprDotName
-
exprDotMethod
public static CodegenExpression exprDotMethod(CodegenExpression expression, String method, CodegenExpression... params) -
enumValue
-
publicConstValue
-
publicConstValue
-
publicConstValue
-
exprDotMethodChain
-
exprDotUnderlying
-
localMethodBuild
-
localMethod
public static CodegenExpressionLocalMethod localMethod(CodegenMethod methodNode, CodegenExpression... parameters) -
constantTrue
-
constantFalse
-
constantNull
-
constant
-
mapOfConstant
-
field
-
newAnonymousClass
public static CodegenExpressionNewAnonymousClass newAnonymousClass(CodegenBlock parentBlock, EPTypeClass interfaceOrSuperClass, List<CodegenExpression> ctorParams) -
newAnonymousClass
public static CodegenExpressionNewAnonymousClass newAnonymousClass(CodegenBlock parentBlock, EPTypeClass interfaceOrSuperClass) -
noop
-
castUnderlying
-
castUnderlying
-
instanceOf
-
notInstanceOf
-
castRef
-
incrementRef
-
increment
-
decrementRef
-
decrement
-
conditional
public static CodegenExpression conditional(CodegenExpression condition, CodegenExpression expressionTrue, CodegenExpression expressionFalse) -
not
-
notOptional
-
cast
-
cast
-
notEqualsNull
-
equalsNull
-
equalsIdentity
-
staticMethod
public static CodegenExpression staticMethod(Class clazz, String method, CodegenExpression... params) -
staticMethod
public static CodegenExpression staticMethod(String clazz, String method, CodegenExpression... params) -
clazz
-
arrayAtIndex
-
assign
-
arrayLength
-
newInstance
-
newInstance
-
relational
public static CodegenExpression relational(CodegenExpression lhs, CodegenExpressionRelational.CodegenRelational op, CodegenExpression rhs) -
newArrayByLength
public static CodegenExpression newArrayByLength(EPTypeClass component, CodegenExpression expression) -
newArrayWithInit
public static CodegenExpression newArrayWithInit(EPTypeClass component, CodegenExpression... expressions) -
renderExpressions
public static void renderExpressions(StringBuilder builder, CodegenExpression[] expressions, Map<Class, String> imports, boolean isInnerClass) -
mergeClassesExpressions
-
traverseMultiple
public static void traverseMultiple(CodegenExpression[] expressions, Consumer<CodegenExpression> consumer) -
traverseMultiple
public static void traverseMultiple(Collection<CodegenExpression> expressions, Consumer<CodegenExpression> consumer)
-