| Modifier and Type | Method and Description |
|---|---|
static Expression |
ExpressionUtils.equalize(Expression expression,
Type target)
Prepare expression to be in the same type as the requested type (supports autocasts)
|
Expression |
Expressible.toExpression()
Convert current object to expression
|
default Expression |
Expression.toExpression() |
| Modifier and Type | Method and Description |
|---|---|
static Expression |
ExpressionUtils.equalize(Expression expression,
Type target)
Prepare expression to be in the same type as the requested type (supports autocasts)
|
static Object[] |
ExpressionUtils.evaluate(ProcessStack stack,
Object instance,
Expression... expressions)
Evaluates the given expressions and returns values stored in the array in the preserved order
|
static <T> T |
ExpressionUtils.evaluateConstExpression(Expression expression)
Evaluates static expression (constexpr) - expression that does not relay on stack and instance
|
| Modifier and Type | Method and Description |
|---|---|
Expression[] |
Adjustment.getArguments()
Get adjusted arguments
|
Expression |
TypeField.getDefaultValue()
Get default value
|
| Modifier and Type | Method and Description |
|---|---|
io.vavr.control.Option<Adjustment<TypeMethod>> |
Methods.getAdjustedArguments(String name,
Expression[] arguments)
Adjust property to the given arguments
|
io.vavr.control.Option<Adjustment<TypeConstructor>> |
Constructors.getAdjustedConstructor(Expression[] arguments)
Adjust property to the given arguments (with varargs support)
|
void |
TypeField.setDefaultValue(Expression defaultValue)
Set the default value of this field,
assigned when a new instance of the type is created
|
| Modifier and Type | Method and Description |
|---|---|
Expression |
ExpressionResult.get()
Get result expression
|
Expression |
ExpressionTransaction.getExpression()
Get parsed expression
|
Expression |
ExpressionResult.orElseGet(Supplier<? extends Expression> supplier) |
Expression |
ExpressionContext.peekExpression()
Check the latest expression on stack
|
Expression |
ExpressionContext.popExpression()
Remove the latest expression from stack
|
| Modifier and Type | Method and Description |
|---|---|
Stack<Expression> |
ExpressionContext.getResults()
Get results
|
| Modifier and Type | Method and Description |
|---|---|
Expression |
ExpressionResult.orElseGet(Supplier<? extends Expression> supplier) |
| Modifier and Type | Class and Description |
|---|---|
class |
AccessorExpression |
| Modifier and Type | Method and Description |
|---|---|
Assigner<T> |
Accessor.toAssigner(Location location,
boolean initialize,
Expression value) |
| Modifier and Type | Class and Description |
|---|---|
class |
AssignerExpression |
| Modifier and Type | Class and Description |
|---|---|
class |
PandaExpression |
class |
StaticExpression |
| Modifier and Type | Method and Description |
|---|---|
static Expression |
ThisExpression.of(Context context) |
static Expression |
ThisExpression.of(Type type) |
default Expression |
DynamicExpression.toExpression() |
| Modifier and Type | Class and Description |
|---|---|
class |
TypeExecutableExpression |
| Modifier and Type | Method and Description |
|---|---|
Expression[] |
BaseCall.getArguments() |
Expression |
PandaField.getDefaultValue() |
| Modifier and Type | Method and Description |
|---|---|
void |
PandaField.setDefaultValue(Expression defaultValue) |
| Constructor and Description |
|---|
AutocastDynamicExpression(Expression original,
Type to,
Autocast<?,?> autocast) |
BaseCall(Location location,
Expression[] arguments) |
TypeExecutableExpression(@Nullable Expression instance,
Adjustment<?> adjustment) |
TypeExecutableExpression(@Nullable Expression instance,
ExecutableProperty executable,
Expression[] arguments) |
TypeExecutableExpression(@Nullable Expression instance,
ExecutableProperty executable,
Expression[] arguments) |
| Modifier and Type | Method and Description |
|---|---|
static Type[] |
ParameterUtils.toTypes(Expression... expressions) |
| Modifier and Type | Method and Description |
|---|---|
Expression |
PandaExpressionContext.peekExpression() |
Expression |
PandaExpressionContext.popExpression() |
| Modifier and Type | Method and Description |
|---|---|
Stack<Expression> |
PandaExpressionContext.getResults() |
Copyright © 2020. All rights reserved.