Package ch.raffael.meldioc.model
Class ModelMethod<S,T>
java.lang.Object
ch.raffael.meldioc.model.ModelMethod<S,T>
Rich representation of a method participating in the Meld model.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic enum -
Method Summary
Modifier and TypeMethodDescriptionabstract io.vavr.collection.Seq<io.vavr.control.Either<ModelMethod<S,T>, BuiltinArgument>> static <S,T> ModelMethod.Builder<S, T> builder()abstract SrcElement<S,T> element()io.vavr.collection.Seq<T>booleanimplied()messages()static <S,T> ModelMethod<S, T> of(SrcElement<S, T> element, ModelType<S, T> modelType) abstract io.vavr.collection.Seq<ModelMethod<S,T>> abstract io.vavr.control.Option<ModelMethod<S,T>> via()withArguments(io.vavr.collection.Seq<io.vavr.control.Either<ModelMethod<S, T>, BuiltinArgument>> value) Copy the current immutable object by setting a value for theargumentsattribute.withElement(SrcElement<S, T> value) Copy the current immutable object by setting a value for theelementattribute.Copy the current immutable object by setting a value for theimplyReasonattribute.abstract ModelMethod<S,T> withMessages(io.vavr.collection.Seq<Message<S, T>> value) withModelType(ModelType<S, T> value) Copy the current immutable object by setting a value for themodelTypeattribute.withOverrides(io.vavr.collection.Seq<ModelMethod<S, T>> value) Copy the current immutable object by setting a value for theoverridesattribute.withVia(ModelMethod<S, T> via) withVia(io.vavr.control.Option<ModelMethod<S, T>> value) Copy the current immutable object by setting a value for theviaattribute.
-
Method Details
-
builder
-
of
-
element
-
modelType
-
returnType
-
exceptions
-
overrides
-
via
-
withVia
-
implied
public boolean implied() -
implyReason
-
arguments
@Auxiliary public abstract io.vavr.collection.Seq<io.vavr.control.Either<ModelMethod<S,T>, arguments()BuiltinArgument>> -
messages
-
withMessages
-
withElement
Copy the current immutable object by setting a value for theelementattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for element- Returns:
- A modified copy of the
thisobject
-
withModelType
Copy the current immutable object by setting a value for themodelTypeattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for modelType- Returns:
- A modified copy of the
thisobject
-
withOverrides
Copy the current immutable object by setting a value for theoverridesattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for overrides- Returns:
- A modified copy of the
thisobject
-
withVia
Copy the current immutable object by setting a value for theviaattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for via- Returns:
- A modified copy of the
thisobject
-
withImplyReason
Copy the current immutable object by setting a value for theimplyReasonattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for implyReason- Returns:
- A modified copy of the
thisobject
-
withArguments
ModelMethod<S,T> withArguments(io.vavr.collection.Seq<io.vavr.control.Either<ModelMethod<S, T>, BuiltinArgument>> value) Copy the current immutable object by setting a value for theargumentsattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for arguments- Returns:
- A modified copy of the
thisobject
-