Class GlslTreeVisitor

java.lang.Object
io.github.ocelot.glslprocessor.api.visitor.GlslTreeVisitor
Direct Known Subclasses:
GlslTreeStringWriter

@Experimental public class GlslTreeVisitor extends Object
Since:
1.0.0
  • Constructor Details

    • GlslTreeVisitor

      public GlslTreeVisitor()
    • GlslTreeVisitor

      public GlslTreeVisitor(@Nullable @Nullable GlslTreeVisitor parent)
  • Method Details

    • visitMarkers

      public void visitMarkers(Map<String,GlslNode> markers)
    • visitVersion

      public void visitVersion(GlslVersionStatement version)
    • visitDirective

      public void visitDirective(String directive)
    • visitMacro

      public void visitMacro(String key, String value)
    • visitNewField

      public void visitNewField(GlslNewFieldNode node)
    • visitStructDeclaration

      public void visitStructDeclaration(GlslStructDeclarationNode node)
    • visitDeclaration

      public void visitDeclaration(GlslVariableDeclarationNode node)
    • visitFunction

      @Nullable public @Nullable GlslNodeVisitor visitFunction(GlslFunctionNode node)
      Visits the specified function declaration statement.
      Parameters:
      node - The node to visit
      Returns:
      A visitor for the body or null to skip
    • visitFunctionEnd

      public void visitFunctionEnd(GlslFunctionNode node)
      Visits the specified function declaration end statement.
      Parameters:
      node - The node to visit
    • visitTreeEnd

      public void visitTreeEnd(GlslTree tree)
      Visits the end of the tree.
      Parameters:
      tree - The tree that was visited