Class GlslNodeStringWriter
java.lang.Object
io.github.ocelot.glslprocessor.api.visitor.GlslNodeVisitor
io.github.ocelot.glslprocessor.api.visitor.GlslNodeStringWriter
- Since:
- 1.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clears the currently building string.toString()voidVisits the specified assignment statement.visitBitwise(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.visitForLoop(GlslForLoopNode node) Visits the specified for loop node.voidVisits the end of the specified for loop node.Visits the specified function declaration statement.voidVisits the specified function declaration end statement.void@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.voidvoidVisits the specified struct statement.visitSwitch(GlslSwitchNode node) Visits the specified switch statement.voidvisitTypeSpecifier(GlslTypeSpecifier typeSpecifier) voidvisitUnary(GlslUnaryNode node) Visits the specified unary statement.voidVisits the specified variable statement.voidVisits the specified variable statement.Visits the specified while loop node.voidVisits the end of the specified while loop node.
-
Constructor Details
-
GlslNodeStringWriter
public GlslNodeStringWriter(boolean inline)
-
-
Method Details
-
visitTypeSpecifier
-
visitSpecifiedType
-
visitFunctionHeader
-
clear
public void clear()Clears the currently building string. -
visitForLoop
Description copied from class:GlslNodeVisitorVisits the specified for loop node.- Overrides:
visitForLoopin classGlslNodeVisitor- Parameters:
node- The node to visit- Returns:
- A visitor for the body or
nullto skip
-
visitForLoopEnd
Description copied from class:GlslNodeVisitorVisits the end of the specified for loop node.- Overrides:
visitForLoopEndin classGlslNodeVisitor- Parameters:
node- The node to visit
-
visitWhileLoop
Description copied from class:GlslNodeVisitorVisits the specified while loop node.- Overrides:
visitWhileLoopin classGlslNodeVisitor- Parameters:
node- The node to visit- Returns:
- A visitor for the body or
nullto skip
-
visitWhileLoopEnd
Description copied from class:GlslNodeVisitorVisits the end of the specified while loop node.- Overrides:
visitWhileLoopEndin classGlslNodeVisitor- Parameters:
node- The node to visit
-
visitJump
Description copied from class:GlslNodeVisitorVisits the specified jump node.- Overrides:
visitJumpin classGlslNodeVisitor- Parameters:
node- The node to visit
-
visitReturn
Description copied from class:GlslNodeVisitorVisits the specified return node.- Overrides:
visitReturnin classGlslNodeVisitor- Parameters:
node- The node to visit
-
visitIf
Description copied from class:GlslNodeVisitorVisits the specified if statement.- Overrides:
visitIfin classGlslNodeVisitor- Parameters:
node- The node to visit- Returns:
- A visitor for the body or
nullto skip
-
visitSwitch
Description copied from class:GlslNodeVisitorVisits the specified switch statement.- Overrides:
visitSwitchin classGlslNodeVisitor- Parameters:
node- The node to visit- Returns:
- A visitor for the body or
nullto skip
-
visitBitwise
Description copied from class:GlslNodeVisitorVisits the specified bitwise statement.- Overrides:
visitBitwisein classGlslNodeVisitor- Parameters:
node- The node to visit- Returns:
- A visitor for the body or
nullto skip
-
visitAssign
Description copied from class:GlslNodeVisitorVisits the specified assignment statement.- Overrides:
visitAssignin classGlslNodeVisitor- Parameters:
node- The node to visit
-
visitOperation
Description copied from class:GlslNodeVisitorVisits the specified operation statement.- Overrides:
visitOperationin classGlslNodeVisitor- Parameters:
node- The node to visit
-
visitCompare
Description copied from class:GlslNodeVisitorVisits the specified compare statement.- Overrides:
visitComparein classGlslNodeVisitor- Parameters:
node- The node to visit
-
visitCondition
Description copied from class:GlslNodeVisitorVisits the specified condition statement.- Overrides:
visitConditionin classGlslNodeVisitor- Parameters:
node- The node to visit
-
visitPrecision
Description copied from class:GlslNodeVisitorVisits the specified precision statement.- Overrides:
visitPrecisionin classGlslNodeVisitor- Parameters:
node- The node to visit
-
visitUnary
Description copied from class:GlslNodeVisitorVisits the specified unary statement.- Overrides:
visitUnaryin classGlslNodeVisitor- Parameters:
node- The node to visit
-
visitFunctionDeclaration
Description copied from class:GlslNodeVisitorVisits the specified function declaration statement.- Overrides:
visitFunctionDeclarationin classGlslNodeVisitor- Parameters:
node- The node to visit- Returns:
- A visitor for the body or
nullto skip
-
visitFunctionDeclarationEnd
Description copied from class:GlslNodeVisitorVisits the specified function declaration end statement.- Overrides:
visitFunctionDeclarationEndin classGlslNodeVisitor- Parameters:
node- The node to visit
-
visitFunctionInvocation
Description copied from class:GlslNodeVisitorVisits the specified function invocation statement.- Overrides:
visitFunctionInvocationin classGlslNodeVisitor- Parameters:
node- The node to visit- Returns:
- A visitor for the name and parameters or
nullto skip
-
visitPrimitiveConstructor
Description copied from class:GlslNodeVisitorVisits the specified primitive constructor statement.- Overrides:
visitPrimitiveConstructorin classGlslNodeVisitor- Parameters:
node- The node to visit
-
visitConstant
Description copied from class:GlslNodeVisitorVisits the specified constant statement.- Overrides:
visitConstantin classGlslNodeVisitor- Parameters:
node- The node to visit
-
visitVariableDeclaration
Description copied from class:GlslNodeVisitorVisits the specified variable statement.- Overrides:
visitVariableDeclarationin classGlslNodeVisitor- Parameters:
node- The node to visit
-
visitGetArray
Description copied from class:GlslNodeVisitorVisits the specified array index get statement.- Overrides:
visitGetArrayin classGlslNodeVisitor- Parameters:
node- The node to visit
-
visitGetField
Description copied from class:GlslNodeVisitorVisits the specified field get statement.- Overrides:
visitGetFieldin classGlslNodeVisitor- Parameters:
node- The node to visit
-
visitNewField
Description copied from class:GlslNodeVisitorVisits the specified new field statement.- Overrides:
visitNewFieldin classGlslNodeVisitor- Parameters:
node- The node to visit
-
visitStructDeclaration
Description copied from class:GlslNodeVisitorVisits the specified struct statement.- Overrides:
visitStructDeclarationin classGlslNodeVisitor- Parameters:
node- The node to visit
-
visitVariable
Description copied from class:GlslNodeVisitorVisits the specified variable statement.- Overrides:
visitVariablein classGlslNodeVisitor- Parameters:
node- The node to visit
-
toString
-