Class PropExprWXYZ
java.lang.Object
ch.njol.skript.lang.util.SimpleExpression<Object>
org.skriptlang.skript.lang.properties.PropertyBaseExpression<WXYZHandler<?,?>>
org.skriptlang.skript.common.properties.expressions.PropExprWXYZ
- All Implemented Interfaces:
Debuggable,Expression<Object>,Loopable<Object>,Simplifiable<Expression<? extends Object>>,SyntaxElement,PropertyBaseSyntax<WXYZHandler<?,,?>> RuntimeErrorProducer,SyntaxRuntimeErrorProducer
-
Field Summary
Fields inherited from class org.skriptlang.skript.lang.properties.PropertyBaseExpression
expr, properties, property, returnType, returnTypes, useCIP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaxis()@NotNull Property<WXYZHandler<?, ?>> Gets the property this expression represents.Returns the name of the property for use in toString, e.g.booleaninit(Expression<?>[] expressions, int matchedPattern, Kleenean isDelayed, SkriptParser.ParseResult parseResult) Called just after the constructor andSyntaxElement.preInit().static voidregister(SyntaxRegistry registry, Origin origin) Methods inherited from class org.skriptlang.skript.lang.properties.PropertyBaseExpression
acceptChange, change, convert, get, getPropertyReturnTypes, getReturnType, isSingle, possibleReturnTypes, toStringMethods inherited from class ch.njol.skript.lang.util.SimpleExpression
check, check, check, getAll, getAnd, getArray, getConvertedExpr, getConvertedExpression, getNode, getSingle, getSource, getTime, isDefault, isLoopOf, iterator, preInit, setTime, setTime, setTime, setTime, setTime, simplify, supportsLoopPeeking, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ch.njol.skript.lang.Expression
beforeChange, canBeSingle, canReturn, changeInPlace, changeInPlace, getAcceptedChangeModes, getOptionalSingle, getSyntaxTypeName, returnNestedStructures, returnsNestedStructures, stream, streamAllMethods inherited from interface org.skriptlang.skript.lang.properties.PropertyBaseSyntax
getBadTypesErrorMessageMethods inherited from interface org.skriptlang.skript.log.runtime.RuntimeErrorProducer
error, error, getRuntimeErrorManager, warning, warningMethods inherited from interface ch.njol.skript.lang.SyntaxElement
getParserMethods inherited from interface org.skriptlang.skript.log.runtime.SyntaxRuntimeErrorProducer
getErrorSource
-
Constructor Details
-
PropExprWXYZ
public PropExprWXYZ()
-
-
Method Details
-
register
-
init
public boolean init(Expression<?>[] expressions, int matchedPattern, Kleenean isDelayed, SkriptParser.ParseResult parseResult) Description copied from interface:SyntaxElementCalled just after the constructor andSyntaxElement.preInit().- Specified by:
initin interfaceSyntaxElement- Overrides:
initin classPropertyBaseExpression<WXYZHandler<?,?>> - Parameters:
expressions- all %expr%s included in the matching pattern in the order they appear in the pattern. If an optional value was left out, it will still be included in this list holding the default value of the desired type, which usually depends on the event.matchedPattern- The index of the pattern which matchedisDelayed- Whether this expression is used after a delay or not (i.e. if the event has already passed when this expression will be called)parseResult- Additional information about the match.- Returns:
- Whether this expression was initialised successfully. An error should be printed prior to returning false to specify the cause.
- See Also:
-
axis
-
getProperty
Description copied from interface:PropertyBaseSyntaxGets the property this expression represents. This is used to find the appropriate handlers for the expression's input types.- Returns:
- The property this expression represents.
-
getPropertyName
Description copied from interface:PropertyBaseSyntaxReturns the name of the property for use in toString, e.g. "name", "display name", etc. Defaults to thePropertyBaseSyntax.getProperty()'s name, but can be overridden for custom names.- Returns:
- The name of the property to use.
-