Class Inject

  • All Implemented Interfaces:
    org.wurbelizer.wurblet.Wurblet

    public class Inject
    extends org.wurbelizer.wurblet.AbstractWurblet
    (@wurblet) Injects code from the argument list.

    usage:
    @wurblet <|> Inject [--string] <text>

    arguments:

    • --string: enclose in double quotes.
    • text: the text to inject.
    The Inject-wurblet is a tag-less wurblet and injects the code between two empty comment blocks /**/.../**/. If the wurblet should scan for such a pattern to the left, the pseudo tag-name < must be used. If to the right, use >.

    Example:

       String text = /**/"blah"/**/;  // @wurblet < Inject --string $some_variable
     
    • Field Summary

      • Fields inherited from class org.wurbelizer.wurblet.AbstractWurblet

        configuration, container, out, phase, source
    • Constructor Summary

      Constructors 
      Constructor Description
      Inject()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void run()  
      • Methods inherited from class org.wurbelizer.wurblet.AbstractWurblet

        cleanup, getClassName, getConfiguration, getContainer, getGuardName, getPackageName, getPhase, getSuperClassName, process, setConfiguration, setContainer, setPhase, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Inject

        public Inject()
    • Method Detail

      • run

        public void run()
                 throws org.wurbelizer.wurbel.WurbelException
        Specified by:
        run in interface org.wurbelizer.wurblet.Wurblet
        Overrides:
        run in class org.wurbelizer.wurblet.AbstractWurblet
        Throws:
        org.wurbelizer.wurbel.WurbelException