Class WrapIdentifierExternalDeclaration<T extends JobParameters>

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 Details

    • WrapIdentifierExternalDeclaration

      public WrapIdentifierExternalDeclaration()
      Creates a new wrap identifier transformation that injects an external declaration.
  • Method Details

    • getInjectionContent

      protected abstract String getInjectionContent()
      Returns the content that is injected as an external declaration.
      Returns:
      The string to be parsed into a new external declaration
    • getInjectionLocation

      protected TransformationPhase.InjectionPoint getInjectionLocation()
      Returns the injection location for where the external declaration should be injected. By default, this is TransformationPhase.InjectionPoint.BEFORE_DECLARATIONS but it can be overwritten.
      Returns:
      The injection location to use