ModifiableLibrary

Class

A modifiable syntax library.

This is the most basic Library implementation, and the one recommended for most providers to use.

The built-in Skript language specification extends this.

Syntax instances must be registered to the library before it is given to the compiler.

Extends

Object

Implements

SyntaxAnnotationUnwrapperLibrary

Modifiers

public

Constructors


new ModifiableLibrary (String)

Constructor

Create a new library instance with the given name.

This is designed to be extended/overridden.

IndexTypeName
1Stringstring
Return Type

ModifiableLibrary

Modifiers

public


Fields


syntax

Field

A state/syntax map for filtering syntax.

Type

Map

Modifiers

protected final

properties

Field

A list of registered properties.

Type

List

Modifiers

protected final

types

Field

A list of registered types.

Type

List

Modifiers

protected final

name

Field

This library's name for debugging and error messages.

Type

String

Modifiers

protected final



Methods


registerEvents (EventHolder...)

Method

Registers event holders.

IndexTypeName
1EventHolder[]events
Return Type

void

Modifiers

public varargs

registerTypes (Type...)

Method

Registers types to this library.

This version accepts Foundation types.

IndexTypeName
1Type[]types
Return Type

void

Modifiers

public varargs

registerTypes (Class...)

Method

Registers types to this library.

IndexTypeName
1Class[]classes
Return Type

void

Modifiers

public varargs

registerConverter (Class, Class, Converter)

Method
No description is available for this element.
IndexTypeName
1Classfrom
2Classto
3Converterconverter
Return Type

void

Modifiers

public

registerOperator (Type, Class, Class, OperatorFunction)

Method
No description is available for this element.
IndexTypeName
1Typetype
2Classfirst
3Classsecond
4OperatorFunctionfunction
Return Type

void

Modifiers

public

getOperators ()

Method
No description is available for this element.
Return Type

Map

Modifiers

public

registerSyntax (State, SyntaxElement...)

Method

Registers syntax elements for a given compile-state.

IndexTypeName
1Statestate
2SyntaxElement[]elements
Return Type

void

Modifiers

public varargs

registerProperty (PropertyHandler)

Method

Registers special property expressions.

IndexTypeName
1PropertyHandlerhandler
Return Type

void

Modifiers

public