Class Inject

java.lang.Object
org.wurbelizer.wurblet.AbstractWurblet
org.tentackle.wurblet.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
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    run()
     

    Methods inherited from class org.wurbelizer.wurblet.AbstractWurblet

    cleanup, getConfiguration, getContainer, getGuardName, getPhase, process, setConfiguration, setContainer, setPhase, toString

    Methods inherited from class java.lang.Object

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

    • Inject

      public Inject()
  • Method Details

    • 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