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.
Object
SyntaxAnnotationUnwrapperLibrary
public
Constructors
new ModifiableLibrary (String)
ConstructorCreate a new library instance with the given name.
This is designed to be extended/overridden.
Index | Type | Name |
---|---|---|
1 | String | string |
ModifiableLibrary
public
Fields
syntax
FieldA state/syntax map for filtering syntax.
Map
protected final
properties
FieldA list of registered properties.
List
protected final
types
FieldA list of registered types.
List
protected final
name
FieldThis library's name for debugging and error messages.
String
protected final
Methods
registerEvents (EventHolder...)
MethodRegisters event holders.
Index | Type | Name |
---|---|---|
1 | EventHolder[] | events |
void
public varargs
registerTypes (Type...)
MethodRegisters types to this library.
This version accepts Foundation types.
Index | Type | Name |
---|---|---|
1 | Type[] | types |
void
public varargs
registerTypes (Class...)
MethodRegisters types to this library.
Index | Type | Name |
---|---|---|
1 | Class[] | classes |
void
public varargs
registerConverter (Class, Class, Converter)
MethodIndex | Type | Name |
---|---|---|
1 | Class | from |
2 | Class | to |
3 | Converter | converter |
void
public
registerOperator (Type, Class, Class, OperatorFunction)
MethodIndex | Type | Name |
---|---|---|
1 | Type | type |
2 | Class | first |
3 | Class | second |
4 | OperatorFunction | function |
void
public
getOperators ()
MethodMap
public
registerSyntax (State, SyntaxElement...)
MethodRegisters syntax elements for a given compile-state.
Index | Type | Name |
---|---|---|
1 | State | state |
2 | SyntaxElement[] | elements |
void
public varargs
registerProperty (PropertyHandler)
MethodRegisters special property expressions.
Index | Type | Name |
---|---|---|
1 | PropertyHandler | handler |
void
public