Interface DefaultSyntaxInfos.Expression<E extends Expression<R>,R>
- Type Parameters:
E
- The class providing the implementation of the Expression this info represents.R
- The type of the return type of the Expression.
- All Superinterfaces:
Builder.Buildable<SyntaxInfo.Builder<?,
,?>, SyntaxInfo<?>> DefaultSyntaxInfos
,SyntaxInfo<E>
- Enclosing interface:
DefaultSyntaxInfos
@Experimental
public static interface DefaultSyntaxInfos.Expression<E extends Expression<R>,R>
extends SyntaxInfo<E>
A syntax info to be used for
Expression
s.
It differs from a typical info in that it also has a return type.-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
DefaultSyntaxInfos.Expression.Builder<B extends DefaultSyntaxInfos.Expression.Builder<B,
E, R>, E extends Expression<R>, R> An Expression-specific builder is used for constructing a new Expression syntax info.Nested classes/interfaces inherited from interface org.skriptlang.skript.registration.DefaultSyntaxInfos
DefaultSyntaxInfos.Expression<E extends Expression<R>,
R>, DefaultSyntaxInfos.Structure<E extends Structure> -
Field Summary
Fields inherited from interface org.skriptlang.skript.registration.SyntaxInfo
COMBINED, PATTERN_MATCHES_EVERYTHING, SIMPLE
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
static <E extends Expression<R>,
R>
DefaultSyntaxInfos.Expression.Builder<? extends DefaultSyntaxInfos.Expression.Builder<?, E, R>, E, R> Constructs a builder for an expression syntax info.
-
Method Details
-
builder
@Contract("_, _ -> new") static <E extends Expression<R>,R> DefaultSyntaxInfos.Expression.Builder<? extends DefaultSyntaxInfos.Expression.Builder<?,E, builderR>, E, R> (Class<E> expressionClass, Class<R> returnType) Constructs a builder for an expression syntax info.- Type Parameters:
E
- The class providing the implementation of the Expression this info represents.R
- The supertype of all values the Expression may return.- Parameters:
expressionClass
- The Expression class the info will represent.returnType
- The class representing the supertype of all values the Expression may return.- Returns:
- An Expression-specific builder for creating a syntax info representing
expressionClass
.
-
builder
@Contract("-> new") DefaultSyntaxInfos.Expression.Builder<? extends DefaultSyntaxInfos.Expression.Builder<?,E, builder()R>, E, R> - Specified by:
builder
in interfaceBuilder.Buildable<E extends Expression<R>,
R> - Specified by:
builder
in interfaceSyntaxInfo<E extends Expression<R>>
- Returns:
- A builder representing this object.
-
returnType
- Returns:
- The class representing the supertype of all values the Expression may return.
-