Class MissingExpression<TYPE>
java.lang.Object
com.petrolpark.core.scratch.symbol.ScratchSymbol<IScratchEnvironment,ScratchArguments.None<IScratchEnvironment>>
com.petrolpark.core.scratch.symbol.expression.ScratchExpression<IScratchEnvironment,TYPE,ScratchArguments.None<IScratchEnvironment>>
com.petrolpark.core.scratch.symbol.expression.GenericExpression<IScratchEnvironment,TYPE,TYPE,ScratchArguments.None<IScratchEnvironment>>
com.petrolpark.core.scratch.symbol.expression.MissingExpression<TYPE>
- All Implemented Interfaces:
IScratchExpression<IScratchEnvironment,,TYPE, ScratchArguments.None<IScratchEnvironment>> IGenericScratchSymbol<IScratchEnvironment,,TYPE, ScratchArguments.None<IScratchEnvironment>> IScratchSymbol<IScratchEnvironment,ScratchArguments.None<IScratchEnvironment>>
public final class MissingExpression<TYPE>
extends GenericExpression<IScratchEnvironment,TYPE,TYPE,ScratchArguments.None<IScratchEnvironment>>
-
Nested Class Summary
Nested classes/interfaces inherited from class com.petrolpark.core.scratch.symbol.expression.GenericExpression
GenericExpression.Type<EXPRESSION extends GenericExpression<?,?, ?, ?>> -
Field Summary
Fields inherited from class com.petrolpark.core.scratch.symbol.expression.GenericExpression
genericClassFields inherited from class com.petrolpark.core.scratch.symbol.ScratchSymbol
parametersFields inherited from interface com.petrolpark.core.scratch.symbol.expression.IScratchExpression
CODEC, STREAM_CODEC, TYPED_CODEC -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanEvaluate(ScratchArguments.None<IScratchEnvironment> arguments) Whether this Symbol can run or evaluate without crashingstatic final <TYPE> MissingExpression<TYPE> create(IScratchClass<TYPE> scratchClass) evaluate(IScratchEnvironment environment, ScratchArguments.None<IScratchEnvironment> arguments) Methods inherited from class com.petrolpark.core.scratch.symbol.expression.GenericExpression
getGenericScratchClassMethods inherited from class com.petrolpark.core.scratch.symbol.ScratchSymbol
getParametersMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.petrolpark.core.scratch.symbol.IScratchSymbol
getParameters
-
Constructor Details
-
MissingExpression
-
-
Method Details
-
create
-
evaluate
public TYPE evaluate(IScratchEnvironment environment, ScratchArguments.None<IScratchEnvironment> arguments) -
canEvaluate
Description copied from interface:IScratchSymbolWhether this Symbol can run or evaluate without crashing- Parameters:
arguments-
-
getReturnClass
-
getExpressionType
-