Class GlslNodeVisitor
java.lang.Object
io.github.ocelot.glslprocessor.api.visitor.GlslNodeVisitor
- Direct Known Subclasses:
GlslNodeStringWriter
- Since:
- 1.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidVisits the specified assignment statement.@Nullable GlslBitwiseVisitorvisitBitwise(GlslBitwiseNode node) Visits the specified bitwise statement.voidvisitCompare(GlslCompareNode node) Visits the specified compare statement.voidVisits the specified condition statement.voidVisits the specified constant statement.@Nullable GlslNodeVisitorvisitForLoop(GlslForLoopNode node) Visits the specified for loop node.voidVisits the end of the specified for loop node.@Nullable GlslInvokeVisitorVisits the specified function invocation statement.voidVisits the specified array index get statement.voidVisits the specified field get statement.@Nullable GlslIfVisitorvisitIf(GlslIfNode node) Visits the specified if statement.voidvisitJump(GlslJumpNode node) Visits the specified jump node.voidVisits the specified new field statement.voidVisits the specified operation statement.voidVisits the specified precision statement.voidVisits the specified primitive constructor statement.voidvisitReturn(GlslReturnNode node) Visits the specified return node.voidVisits the specified struct statement.@Nullable GlslSwitchVisitorvisitSwitch(GlslSwitchNode node) Visits the specified switch statement.voidvisitUnary(GlslUnaryNode node) Visits the specified unary statement.voidVisits the specified variable statement.voidVisits the specified variable statement.@Nullable GlslNodeVisitorVisits the specified while loop node.voidVisits the end of the specified while loop node.
-
Constructor Details
-
GlslNodeVisitor
public GlslNodeVisitor() -
GlslNodeVisitor
-
-
Method Details
-
visitForLoop
Visits the specified for loop node.- Parameters:
node- The node to visit- Returns:
- A visitor for the body or
nullto skip
-
visitForLoopEnd
Visits the end of the specified for loop node.- Parameters:
node- The node to visit
-
visitWhileLoop
Visits the specified while loop node.- Parameters:
node- The node to visit- Returns:
- A visitor for the body or
nullto skip
-
visitWhileLoopEnd
Visits the end of the specified while loop node.- Parameters:
node- The node to visit
-
visitJump
Visits the specified jump node.- Parameters:
node- The node to visit
-
visitReturn
Visits the specified return node.- Parameters:
node- The node to visit
-
visitIf
Visits the specified if statement.- Parameters:
node- The node to visit- Returns:
- A visitor for the body or
nullto skip
-
visitSwitch
Visits the specified switch statement.- Parameters:
node- The node to visit- Returns:
- A visitor for the body or
nullto skip
-
visitBitwise
Visits the specified bitwise statement.- Parameters:
node- The node to visit- Returns:
- A visitor for the body or
nullto skip
-
visitAssign
Visits the specified assignment statement.- Parameters:
node- The node to visit
-
visitOperation
Visits the specified operation statement.- Parameters:
node- The node to visit
-
visitCompare
Visits the specified compare statement.- Parameters:
node- The node to visit
-
visitCondition
Visits the specified condition statement.- Parameters:
node- The node to visit
-
visitPrecision
Visits the specified precision statement.- Parameters:
node- The node to visit
-
visitUnary
Visits the specified unary statement.- Parameters:
node- The node to visit
-
visitFunctionInvocation
Visits the specified function invocation statement.- Parameters:
node- The node to visit- Returns:
- A visitor for the name and parameters or
nullto skip
-
visitPrimitiveConstructor
Visits the specified primitive constructor statement.- Parameters:
node- The node to visit
-
visitConstant
Visits the specified constant statement.- Parameters:
node- The node to visit
-
visitVariableDeclaration
Visits the specified variable statement.- Parameters:
node- The node to visit
-
visitGetArray
Visits the specified array index get statement.- Parameters:
node- The node to visit
-
visitGetField
Visits the specified field get statement.- Parameters:
node- The node to visit
-
visitNewField
Visits the specified new field statement.- Parameters:
node- The node to visit
-
visitStructDeclaration
Visits the specified struct statement.- Parameters:
node- The node to visit
-
visitVariable
Visits the specified variable statement.- Parameters:
node- The node to visit
-