@Value.Immutable
public interface Parameter<T>
| Modifier and Type | Method and Description |
|---|---|
default boolean |
isLazy()
Set to true, the parameter will not be evaluated in advance, but the corresponding
ASTNode will be passed as a parameter value. |
static <T> ImmutableParameter<T> |
lazyWith(Class<T> type) |
static <T> ImmutableParameter<T> |
of(Class<T> type) |
Class<T> |
type() |
default void |
validate(Token token,
Object parameterValue)
Deprecated.
|
default Optional<EvaluableException> |
validationError(Object parameterValue) |
List<ParameterValidator<T>> |
validators() |
@Value.Default default boolean isLazy()
ASTNode will be passed as a parameter value.List<ParameterValidator<T>> validators()
static <T> ImmutableParameter<T> of(Class<T> type)
static <T> ImmutableParameter<T> lazyWith(Class<T> type)
@Value.Auxiliary @Deprecated default void validate(Token token, Object parameterValue) throws EvaluationException
EvaluationException@Value.Auxiliary default Optional<EvaluableException> validationError(Object parameterValue)
Copyright © 2024. All rights reserved.