Package org.qdl_lang.variables
Class QDLNull
- java.lang.Object
- 
- org.qdl_lang.expressions.ExpressionImpl
- 
- org.qdl_lang.expressions.ConstantNode
- 
- org.qdl_lang.variables.QDLNull
 
 
 
- 
- All Implemented Interfaces:
- Serializable,- ExpressionNode,- ExpressionInterface,- HasResultInterface,- Statement
 
 public class QDLNull extends ConstantNode This represents when the user explicitly sets a variable to null. This just exists. It does nothing. Note that this is a static class -- there is exactly one null object in QDL.Created by Jeff Gaynor 
 on 4/9/20 at 9:08 AM- See Also:
- Serialized Form
 
- 
- 
Field Summary- 
Fields inherited from class org.qdl_lang.expressions.ExpressionImplarguments, result, valence
 - 
Fields inherited from interface org.qdl_lang.statements.ExpressionInterfaceALL_INDICES_NODE, ALT_IF_NODE, ASSIGNMENT_NODE, AXIS_RESTRICTION_NODE, CLOSED_SLICE_NODE, COMPARISON_DYAD_NODE, CONSTANT_NODE, DYAD_NODE, DYADIC_FUNCTION_REFERENCE_NODE, EXPRESSION_STEM_NODE, EXPRESSION_STEM2_NODE, FUNCTION_REFERENCE_NODE, LAMBDA_DEFINITION_NODE, LIST_NODE, MODULE_NODE, MONAD_NODE, NILAD_NODE, OPEN_SLICE_NODE, PARENTHESIZED_NODE, PARSE_EXPRESSION_BLOCK_NODE, PARSE_STATEMENT_BLOCK_NODE, POLYAD_NODE, QDL_NULL_NODE, SELECT_NODE, SET_NODE, STEM_ENTRY_NODE, STEM_EXTRACTION_NODE, STEM_NODE, UNKNOWN_NODE, VARIABLE_NODE
 
- 
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static QDLNullgetInstance()intgetNodeType()QDL is not strongly typed but Java is, so each node type should have a unique integer and conditionals should use that, not the instanceof operator.QDLValuegetResult()StringtoString()- 
Methods inherited from class org.qdl_lang.expressions.ConstantNodeevaluate, makeCopy
 - 
Methods inherited from class org.qdl_lang.expressions.ExpressionImpladdArgument, evalArg, evalLastArg, evaluatedArgs, getAlias, getArgAt, getArgCount, getArguments, getEvaluatedArgs, getLastArg, getOperatorType, getResultType, getSourceCode, getTokenPosition, hasAlias, hasEvaluatedArgs, hasTokenPosition, isEvaluated, isSizeQuery, setAlias, setArguments, setEvaluated, setEvaluatedArgs, setOperatorType, setResult, setResult, setSizeQuery, setSourceCode, setTokenPosition
 
- 
 
- 
- 
- 
Method Detail- 
getInstancepublic static QDLNull getInstance() 
 - 
getResultpublic QDLValue getResult() - Specified by:
- getResultin interface- HasResultInterface
- Overrides:
- getResultin class- ExpressionImpl
 
 - 
toStringpublic String toString() - Overrides:
- toStringin class- ExpressionImpl
 
 - 
getNodeTypepublic int getNodeType() Description copied from interface:ExpressionInterfaceQDL is not strongly typed but Java is, so each node type should have a unique integer and conditionals should use that, not the instanceof operator. This allows for efficient programming with switch statements rather than a bevy of conditionals (potentially each of which gets done even if the correct case has been handled).- Specified by:
- getNodeTypein interface- ExpressionInterface
- Overrides:
- getNodeTypein class- ConstantNode
- Returns:
 
 
- 
 
-