Interface GlslNode
- All Known Subinterfaces:
GlslConstantNode,GlslRootNode
- All Known Implementing Classes:
ForLoopNode,GlslAndNode,GlslArrayNode,GlslAssignmentNode,GlslBoolConstantNode,GlslCaseLabelNode,GlslCompareNode,GlslCompoundNode,GlslConditionalNode,GlslDeclarationNode,GlslDoubleConstantNode,GlslEmptyNode,GlslExclusiveOrNode,GlslFieldNode,GlslFloatConstantNode,GlslFunctionNode,GlslInclusiveOrNode,GlslIntConstantNode,GlslInvokeFunctionNode,GlslLogicalAndNode,GlslLogicalOrNode,GlslLogicalXorNode,GlslNewNode,GlslOperationNode,GlslPrecisionNode,GlslPrimitiveConstructorNode,GlslReturnNode,GlslSelectionNode,GlslStructNode,GlslSwitchNode,GlslUnaryNode,GlslVariableNode,JumpNode,WhileLoopNode
public interface GlslNode
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic GlslBoolConstantNodebooleanConstant(boolean value) static GlslNodestatic GlslNodecompound(Collection<GlslNode> nodes) static GlslDoubleConstantNodedoubleConstant(double value) static GlslFloatConstantNodefloatConstant(float value) default @Nullable GlslNodeListgetBody()default @Nullable GlslSpecifiedTypegetType()static GlslIntConstantNodeintConstant(int value) default booleanSets the body of this node.default booleansetBody(Collection<GlslNode> body) Sets the body of this node.stream()toList()static GlslIntConstantNodeunsignedIntConstant(int value)
-
Field Details
-
NEWLINE
-
-
Method Details
-
getSourceString
String getSourceString() -
getType
- Returns:
- The type of this node if it is a field
-
toList
- Returns:
- A new list with the child contents of this node
-
getBody
- Returns:
- The body of this node or
nullif there is no sub-body in this node
-
setBody
Sets the body of this node.- Parameters:
body- The new body- Returns:
- Whether the action was successful
-
setBody
Sets the body of this node.- Parameters:
body- The new body- Returns:
- Whether the action was successful
-
stream
-
intConstant
-
unsignedIntConstant
-
floatConstant
-
doubleConstant
-
booleanConstant
-
compound
-
compound
-