Class WrapIdentifierDynamic<T>
java.lang.Object
io.github.douira.glsl_transformer.transform.Transformation<T>
io.github.douira.glsl_transformer.core.WrapIdentifierDynamic<T>
- Direct Known Subclasses:
WrapIdentifierExternalDeclaration
The dynamic wrap identifier transformation has a number of abstract methods
that can be implemented in order to dynamically supply the parameters for
this identifier wrap operation. The wrapping injector is given directly
though since the injection methods can vary greatly.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.github.douira.glsl_transformer.transform.Transformation
Transformation.PhaseEntry<T> -
Field Summary
Fields inherited from class io.github.douira.glsl_transformer.transform.Transformation
DEFAULT_GROUP -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates a new wrap identifier transformation with no wrapping injector.WrapIdentifierDynamic(TransformationPhase<T> wrappingInjector) Creates a new wrap identifier transformation with a specified wrapping injector phase. -
Method Summary
Methods inherited from class io.github.douira.glsl_transformer.transform.Transformation
addConcurrentPhase, addPhase, addPhase, addPhase, addPhase, addPhases, append, getDefaultGroup, merge, resetState
-
Constructor Details
-
WrapIdentifierDynamic
Creates a new wrap identifier transformation with a specified wrapping injector phase.- Parameters:
wrappingInjector- A phase that injects the additional code into the tree required for making the wrap work
-
WrapIdentifierDynamic
protected WrapIdentifierDynamic()Creates a new wrap identifier transformation with no wrapping injector. The phase for that should be added to the transformation manually.
-
-
Method Details
-
isActiveDynamic
protected abstract boolean isActiveDynamic()Returns if the phases should be active.- Returns:
trueif the phases should be active
-
getWrapResultDynamic
Returns the wrapping result that is used as a replacement for the target.- Returns:
- The wrapping result
-
getWrapTargetDynamic
Returns the wrapping target. The wrapping target is the identifier that is replaced with the wrap result.- Returns:
- The wrapping target
-