Class WrapIdentifierExternalDeclaration<T>
java.lang.Object
io.github.douira.glsl_transformer.transform.CollectorChildImpl<T>
io.github.douira.glsl_transformer.transform.Transformation<T>
io.github.douira.glsl_transformer.core.WrapIdentifierDynamic<T>
io.github.douira.glsl_transformer.core.WrapIdentifierExternalDeclaration<T>
- All Implemented Interfaces:
CollectorChild<T>
A wrap identifier transformation that injects an external declaration at a
specified location. By default it's injected at
TransformationPhase.InjectionPoint.BEFORE_DECLARATIONS.-
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
ConstructorsConstructorDescriptionCreates a new wrap identifier transformation that injects an external declaration. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract StringReturns the content that is injected as an external declaration.protected TransformationPhase.InjectionPointReturns the injection location for where the external declaration should be injected.Methods inherited from class io.github.douira.glsl_transformer.core.WrapIdentifierDynamic
getWrapResultDynamic, getWrapTargetDynamic, isActiveDynamicMethods inherited from class io.github.douira.glsl_transformer.transform.Transformation
addConcurrentPhase, addPhase, addPhase, addPhase, addPhase, addPhases, append, getDefaultGroup, merge, resetState, setCollectorMethods inherited from class io.github.douira.glsl_transformer.transform.CollectorChildImpl
getCollectorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.github.douira.glsl_transformer.transform.CollectorChild
getJobParameters, getLexer, getParser, getRootNode
-
Constructor Details
-
WrapIdentifierExternalDeclaration
public WrapIdentifierExternalDeclaration()Creates a new wrap identifier transformation that injects an external declaration.
-
-
Method Details
-
getInjectionContent
Returns the content that is injected as an external declaration.- Returns:
- The string to be parsed into a new external declaration
-
getInjectionLocation
Returns the injection location for where the external declaration should be injected. By default this isTransformationPhase.InjectionPoint.BEFORE_DECLARATIONSbut it can be overwritten.- Returns:
- The injection location to use
-