Snippet represents
an execution of value constructor, statement, expression and script. The Snippet provides
parameter(s) and return types used to compose the Snippets.
| Modifier and Type | Class and Description |
|---|---|
| public static class | Snippet.
The builder of a |
| Modifier and Type | Field and Description |
|---|---|
| private final Value | |
| private final String | |
| private final List | |
| private final TypeDescriptor | |
| private final ResultVerifier |
| Access | Constructor and Description |
|---|---|
| private | Snippet(final String id, final Value executableValue, final TypeDescriptor type, final List<? extends TypeDescriptor> parameterTypes, final ResultVerifier verifier)
|
| Modifier and Type | Method and Description |
|---|---|
| public Value | |
| public String | |
| public List | |
| public ResultVerifier | Returns: either a custom or the defaultResultVerifier.Returns the |
| public TypeDescriptor | |
| public static Snippet. | Returns: the newBuilderthe id, final Value executableValue, final TypeDescriptor Snippet identifier The Snippets from a single
LanguageProvider with the same identifier but different types are treated
as overloads.the executableReturnType)Snippet return typeCreates a new |
| public String |
| executableValue | back to summary |
|---|---|
| private final Value executableValue | |
| id | back to summary |
|---|---|
| private final String id | |
| parameterTypes | back to summary |
|---|---|
| private final List<? extends TypeDescriptor> parameterTypes | |
| type | back to summary |
|---|---|
| private final TypeDescriptor type | |
| verifier | back to summary |
|---|---|
| private final ResultVerifier verifier | |
| Snippet | back to summary |
|---|---|
| private Snippet(final String id, final Value executableValue, final TypeDescriptor type, final List<? extends TypeDescriptor> parameterTypes, final ResultVerifier verifier) | |
| getExecutableValue | back to summary |
|---|---|
| public Value getExecutableValue() Returns the function executing the | |
| getId | back to summary |
|---|---|
| public String getId() Returns the identifier of a snippet. The | |
| getParameterTypes | back to summary |
|---|---|
| public List Returns the types of
| |
| getResultVerifier | back to summary |
|---|---|
| public ResultVerifier getResultVerifier() Returns the
| |
| getReturnType | back to summary |
|---|---|
| public TypeDescriptor getReturnType() Returns the
| |
| newBuilder | back to summary |
|---|---|
| public static Snippet. Creates a new
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
Snippet.
| Modifier and Type | Field and Description |
|---|---|
| private TypeDescriptor | |
| private final Value | |
| private final String | |
| private List | |
| private ResultVerifier |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public Snippet | |
| public Snippet. | Returns: thisBuilderthe types of parameterTypes)Snippet's parametersSets the |
| public Snippet. | Returns: thisBuilderthe custom resultVerifier)ResultVerifierSets a custom verifier of a result of the |
| executableReturnType | back to summary |
|---|---|
| private TypeDescriptor executableReturnType | |
| executableValue | back to summary |
|---|---|
| private final Value executableValue | |
| id | back to summary |
|---|---|
| private final String id | |
| parameterTypes | back to summary |
|---|---|
| private List<TypeDescriptor> parameterTypes | |
| verifier | back to summary |
|---|---|
| private ResultVerifier verifier | |
| Builder | back to summary |
|---|---|
| private Builder(final String id, final Value executableValue, final TypeDescriptor executableReturnType) | |
| build | back to summary |
|---|---|
| public Snippet build() | |
| parameterTypes | back to summary |
|---|---|
| public Snippet. Sets the
| |
| resultVerifier | back to summary |
|---|---|
| public Snippet. Sets a custom verifier of a result of the
| |