Class GlslTreeVisitor
java.lang.Object
io.github.ocelot.glslprocessor.api.visitor.GlslTreeVisitor
- Direct Known Subclasses:
GlslTreeStringWriter
- Since:
- 1.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvisitDirective(String directive) @Nullable GlslNodeVisitorVisits the specified function declaration statement.voidVisits the specified function declaration end statement.voidvisitMacro(String key, String value) voidvisitMarkers(Map<String, GlslNode> markers) voidvoidvoidvisitTreeEnd(GlslTree tree) Visits the end of the tree.voidvisitVersion(GlslVersionStatement version)
-
Constructor Details
-
GlslTreeVisitor
public GlslTreeVisitor() -
GlslTreeVisitor
-
-
Method Details
-
visitMarkers
-
visitVersion
-
visitDirective
-
visitMacro
-
visitNewField
-
visitStructDeclaration
-
visitDeclaration
-
visitFunction
Visits the specified function declaration statement.- Parameters:
node- The node to visit- Returns:
- A visitor for the body or
nullto skip
-
visitFunctionEnd
Visits the specified function declaration end statement.- Parameters:
node- The node to visit
-
visitTreeEnd
Visits the end of the tree.- Parameters:
tree- The tree that was visited
-