Class Transformation
java.lang.Object
io.github.douira.glsl_transformer.transform.Transformation
- Direct Known Subclasses:
DebugTransformation,DeclarationReplacement
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddPhase(io.github.douira.glsl_transformer.transform.Phase phase) protected voidaddPhase(io.github.douira.glsl_transformer.transform.Phase phase, int index) protected abstract voidThis method should create phases and add them withaddPhase(Phase)oraddPhase(Phase, int).protected voidThis method is called by the phase collector each time a tree is transformed in order to reset or initialize the state of the transformation if it has any.
-
Constructor Details
-
Transformation
public Transformation()
-
-
Method Details
-
addPhase
protected void addPhase(io.github.douira.glsl_transformer.transform.Phase phase) -
addPhase
protected void addPhase(io.github.douira.glsl_transformer.transform.Phase phase, int index) -
resetState
protected void resetState()This method is called by the phase collector each time a tree is transformed in order to reset or initialize the state of the transformation if it has any. -
createPhases
protected abstract void createPhases()This method should create phases and add them withaddPhase(Phase)oraddPhase(Phase, int). Phases are typically implemented by creating anonymous classes within the implementation of this method.
-