Interface DefaultSyntaxInfos.Structure.Builder<B extends DefaultSyntaxInfos.Structure.Builder<B,E>,E extends Structure>
- Type Parameters:
B
- The type of builder being used.E
- The Structure class providing the implementation of the syntax info being built.
- All Superinterfaces:
Builder<SyntaxInfo.Builder<?,
,?>, SyntaxInfo<?>> SyntaxInfo.Builder<B,
E>
- Enclosing interface:
DefaultSyntaxInfos.Structure<E extends Structure>
public static interface DefaultSyntaxInfos.Structure.Builder<B extends DefaultSyntaxInfos.Structure.Builder<B,E>,E extends Structure>
extends SyntaxInfo.Builder<B,E>
A Structure-specific builder is used for constructing a new Structure syntax info.
- See Also:
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds a new syntax info from the set details.entryValidator
(EntryValidator entryValidator) Sets the entry validator the Structure will use for handling entries.Sets the type ofNode
s that can represent the Structure.Methods inherited from interface org.skriptlang.skript.registration.SyntaxInfo.Builder
addPattern, addPatterns, addPatterns, applyTo, clearPatterns, origin, priority, supplier
-
Method Details
-
entryValidator
Sets the entry validator the Structure will use for handling entries.- Parameters:
entryValidator
- The entry validator to use.- Returns:
- This builder.
- See Also:
-
nodeType
Sets the type ofNode
s that can represent the Structure.- Returns:
- This builder.
- See Also:
-
build
Builds a new syntax info from the set details.- Specified by:
build
in interfaceBuilder<B extends DefaultSyntaxInfos.Structure.Builder<B,
E>, E extends Structure> - Specified by:
build
in interfaceSyntaxInfo.Builder<B extends DefaultSyntaxInfos.Structure.Builder<B,
E>, E extends Structure> - Returns:
- A syntax info representing the class providing the syntax's implementation.
-