Package foundry.veil.api.glsl.node
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
-
Method Summary
Modifier and TypeMethodDescriptionstatic GlslBoolConstantNode
booleanConstant
(boolean value) static GlslNode
static GlslNode
compound
(Collection<GlslNode> nodes) static GlslDoubleConstantNode
doubleConstant
(double value) static GlslFloatConstantNode
floatConstant
(float value) default @Nullable GlslNodeList
getBody()
default @Nullable GlslSpecifiedType
getType()
static GlslIntConstantNode
intConstant
(int value) default boolean
Sets the body of this node.default boolean
setBody
(Collection<GlslNode> body) Sets the body of this node.stream()
toList()
static GlslIntConstantNode
unsignedIntConstant
(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
null
if 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
-