Class PanicExpression
java.lang.Object
org.openzen.zenscript.codemodel.expression.Expression
org.openzen.zenscript.codemodel.expression.PanicExpression
- All Implemented Interfaces:
IPartialExpression
-
Field Summary
FieldsFields inherited from class org.openzen.zenscript.codemodel.expression.Expression
NONE, position, thrownType, type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaborts()Determines if this expression aborts execution; that is, it is either a throw or a panic expression.<C,R> R accept(C context, ExpressionVisitorWithContext<C, R> visitor) <T> Taccept(ExpressionVisitor<T> visitor) transform(ExpressionTransformer transformer) Methods inherited from class org.openzen.zenscript.codemodel.expression.Expression
binaryThrow, call, castExplicit, castImplicit, eval, evaluateEnumConstant, evaluateStringConstant, forEachStatement, getAssignHints, getMember, getPossibleFunctionHeaders, getTypeArguments, multiThrow, predictCallTypes, transform, transformMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.openzen.zenscript.codemodel.partial.IPartialExpression
assign, capture, getMember
-
Field Details
-
value
-
-
Constructor Details
-
Method Details
-
aborts
public boolean aborts()Description copied from class:ExpressionDetermines if this expression aborts execution; that is, it is either a throw or a panic expression.- Overrides:
abortsin classExpression- Returns:
- abort flag
-
accept
- Specified by:
acceptin classExpression
-
accept
- Specified by:
acceptin classExpression
-
transform
- Specified by:
transformin classExpression
-
normalize
- Specified by:
normalizein classExpression
-