Package io.github.douira.glsl_transformer.core.target


package io.github.douira.glsl_transformer.core.target
  • Class Summary
    Class
    Description
    A handler target contains a string to search for and a method that is called to handle finding the string in a parse tree.
    Implements a handler target in a simple way by simply being constructed with a fixed needle.
    A parsed replace target generates a node from parsing a string for each replacement.
    A parsed replace target generates a new parsed node from a stored string each time a replacement is handled.
    A replacement target searches for a search string and uses a method to generate a tree member to replace it in the tree.
    A terminal replace target replaces the target with a terminal string node.
    This terminal replacement target uses a given string to generate terminal nodes to use as replacement nodes for replacing found targets.
    A target that searches for a search string in and upon finding a match uses a method to generate a string for a semantic exception which is then thrown.
    A throw target that has a fixed message it puts into the exception that's thrown when the target is found.
    The wrap target is used for detecting the presence of a wrap result.
    This implementation of the wrap target uses a field for statically holding the wrap result.