Interface SyntaxRuntimeErrorProducer
- All Superinterfaces:
RuntimeErrorProducer
- All Known Implementing Classes:
ExprDisplayBillboard
,ExprDisplayGlowOverride
,ExprDisplayHeightWidth
,ExprDisplayInterpolation
,ExprDisplayShadow
,ExprDisplayTeleportDuration
,ExprDisplayTransformationRotation
,ExprDisplayTransformationScaleTranslation
,ExprDisplayViewRange
,ExprItemDisplayTransform
,ExprItemOfEntity
,ExprLootContextEntity
,ExprLootContextLocation
,ExprLootContextLooter
,ExprLootContextLuck
,ExprLootTable
,ExprLootTableSeed
,ExprLoveTime
,ExprQuaternionAxisAngle
,ExprTagKey
,ExprTextDisplayAlignment
,ExprTextDisplayLineWidth
,ExprTextDisplayOpacity
,ExprTextOf
,ch.njol.skript.expressions.base.SimplePropertyExpression
A runtime error producer intended for use with
SyntaxElement
s. Uses Node
s to determine source.-
Method Summary
Modifier and TypeMethodDescriptiondefault @NotNull ErrorSource
Gets the source of the errors produced by the implementing class.getNode()
Returns the sourceNode
for any errors the implementing class emits.Methods inherited from interface org.skriptlang.skript.log.runtime.RuntimeErrorProducer
error, getRuntimeErrorManager, toHighlight, warning
-
Method Details
-
getNode
Node getNode()Returns the sourceNode
for any errors the implementing class emits.
Used for accessing the line contents viaNode.getKey()
and the line number viaNode.getLine()
.
A standard implementation is to store the Node duringSyntaxElement.init(Expression[], int, Kleenean, SkriptParser.ParseResult)
viaParserInstance.getNode()
.- Returns:
- The source that produced a runtime error.
-
getErrorSource
Description copied from interface:RuntimeErrorProducer
Gets the source of the errors produced by the implementing class. Most extending interfaces should provide a default implementation of this method for ease of use.- Specified by:
getErrorSource
in interfaceRuntimeErrorProducer
- Returns:
- The source of the error.
- See Also:
-