Class GlslSwitchNode
java.lang.Object
foundry.veil.impl.glsl.node.branch.GlslSwitchNode
- All Implemented Interfaces:
GlslNode
Switch statement.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsetBranches(GlslNode... branches) Replaces all branches with the specified values.setBranches(Collection<GlslNode> branches) Replaces all branches with the specified values.setCondition(GlslNode condition) Sets the input condition for this switch statement.toString()
-
Constructor Details
-
GlslSwitchNode
-
-
Method Details
-
getCondition
- Returns:
- The condition inside the switch
switch(condition) {}
-
getBranches
- Returns:
- All code inside the switch, including all labels and code under those labels
-
setCondition
Sets the input condition for this switch statement.- Parameters:
condition- The new condition to use
-
setBranches
Replaces all branches with the specified values.- Parameters:
branches- The new branches
-
setBranches
Replaces all branches with the specified values.- Parameters:
branches- The new branches
-
toString
-
getSourceString
- Specified by:
getSourceStringin interfaceGlslNode
-