Class WrapIdentifierExternalDeclaration<T extends JobParameters>
java.lang.Object
io.github.douira.glsl_transformer.transform.LifecycleUserImpl<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:
LifecycleUser<T>
public abstract class WrapIdentifierExternalDeclaration<T extends JobParameters>
extends WrapIdentifierDynamic<T>
A wrap identifier transformation that injects an external declaration at a
specified location. By default, it's injected at
TransformationPhase.InjectionPoint.BEFORE_DECLARATIONS.
TODO: needs tests-
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
addDependency, addDependent, addEndDependent, addRootDependency, appendDependent, chainConcurrentDependency, chainConcurrentDependent, chainConcurrentSibling, chainDependency, chainDependent, prependDependency, setupGraphMethods inherited from class io.github.douira.glsl_transformer.transform.LifecycleUserImpl
getPlanner, isInitialized, setInitialized, setPlannerMethods 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.LifecycleUser
getJobParameters, getLexer, getParser, getRootNode, init, initOnce, resetState
-
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
-