Package io.sundr.model
Interface Expression
-
- All Superinterfaces:
Node,Renderable
- All Known Subinterfaces:
ExpressionOrStatement
- All Known Implementing Classes:
Assign,BinaryExpression,BitwiseAnd,BitwiseOr,Cast,Construct,Declare,Divide,Enclosed,Equals,GreaterThan,GreaterThanOrEqual,Index,InstanceOf,Inverse,Lambda,LeftShift,LessThan,LessThanOrEqual,LogicalAnd,LogicalOr,MethodCall,Minus,Modulo,Multiply,Negative,NewArray,Not,NotEquals,Plus,Positive,PostDecrement,PostIncrement,PreDecrement,PreIncrement,PropertyRef,RightShift,RightUnsignedShift,Ternary,This,ValueRef,Xor
public interface Expression extends Renderable
-
-
Field Summary
Fields Modifier and Type Field Description static ExpressionNULL-
Fields inherited from interface io.sundr.model.Node
AT, CB, CC, CLP, COLN, COMA, CP, DOT, DQ, EMPTY, EQ, EXTENDS, GT, IMPLEMENTS, INDENT, JAVA_LANG, JAVA_LANG_ENUM, JAVA_LANG_OBJECT, JAVA_LANG_STRING, LT, NEWLINE, NEWLINE_PATTERN, OB, OC, OP, Q, SEMICOLN, SEMICOLN_SUFFIX_PATTERN, SPACE, STAR, THROWS, VARARG
-
-
Method Summary
-
Methods inherited from interface io.sundr.model.Renderable
render, tab
-
-
-
-
Field Detail
-
NULL
static final Expression NULL
-
-
Method Detail
-
renderExpression
default String renderExpression()
-
not
static Expression not(Expression expression)
-
not
default Expression not()
-
and
static Expression and(Expression left, Expression right)
-
and
default Expression and(Expression expression)
-
and
default Expression and(Function<Expression,Expression> function)
-
or
static Expression or(Expression left, Expression right)
-
or
default Expression or(Expression expression)
-
or
default Expression or(Function<Expression,Expression> function)
-
enclosed
static Expression enclosed(Expression expression)
-
enclosed
default Expression enclosed()
-
positive
static Expression positive(Expression expression)
-
positive
default Expression positive()
-
negative
static Expression negative(Expression expression)
-
negative
default Expression negative()
-
cast
static Expression cast(TypeRef type, Expression expression)
-
cast
default Expression cast(TypeRef type)
-
cast
static Expression cast(Class type, Expression expression)
-
cast
default Expression cast(Class type)
-
eq
static Expression eq(Expression left, Expression right)
-
eq
default Expression eq(Expression expression)
-
ne
static Expression ne(Expression left, Expression right)
-
ne
default Expression ne(Expression expression)
-
notNull
static Expression notNull(Expression expression)
-
notNull
default Expression notNull()
-
isNull
static Expression isNull(Expression expression)
-
isNull
default Expression isNull()
-
instanceOf
default Expression instanceOf(ClassRef classRef)
-
instanceOf
default Expression instanceOf(Class c)
-
plus
static Expression plus(Expression left, Expression right)
-
plus
default Expression plus(Expression expression)
-
plus
default Expression plus(Number number)
-
minus
static Expression minus(Expression left, Expression right)
-
minus
default Expression minus(Expression expression)
-
minus
default Expression minus(Number number)
-
multiply
static Expression multiply(Expression left, Expression right)
-
multiply
default Expression multiply(Expression expression)
-
divide
static Expression divide(Expression left, Expression right)
-
divide
default Expression divide(Expression expression)
-
modulo
static Expression modulo(Expression left, Expression right)
-
modulo
default Expression modulo(Expression expression)
-
property
default Expression property(String name)
-
property
default Expression property(TypeRef type, String name)
-
property
default Expression property(Property property)
-
call
static MethodCall call(Class type, String name, Expression... expression)
-
call
static MethodCall call(TypeRef type, String name, Expression... expression)
-
call
static MethodCall call(TypeDef type, String name, Expression... expression)
-
newCall
static MethodCall newCall(String name, Expression... expression)
-
call
default MethodCall call(String name, Expression... expression)
-
index
default Index index(Expression expression)
-
index
default Index index(int index)
-
postIncrement
default Expression postIncrement()
-
postDecrement
default Expression postDecrement()
-
preIncrement
default Expression preIncrement()
-
pretDecrement
default Expression pretDecrement()
-
ternary
static Ternary ternary(Expression condition, Expression thenExpression, Expression elseExpression)
-
assign
default Assign assign(Expression expression)
-
assignNew
default Assign assignNew(Class type, Expression... arguments)
-
assignNew
default Assign assignNew(ClassRef type, Expression... arguments)
-
assignNull
default Assign assignNull()
-
createNew
static Construct createNew(Class type, Expression... arguments)
-
createNew
static Construct createNew(ClassRef type, Expression... arguments)
-
createNewArray
static NewArray createNewArray(Class type, Expression... expressions)
-
createNewArray
static NewArray createNewArray(TypeRef type, Expression... expressions)
-
lamba
static Lambda lamba(Property parameter, Expression expression)
-
lamba
static Lambda lamba(String parameter, Expression expression)
-
ret
default Statement ret()
-
-