Class XVar


public class XVar extends Var
Dummy variable for resolving $X{...} variables.
  • Constructor Details

    • XVar

      public XVar()
      Constructor.
  • Method Details

    • resolve

      public String resolve(VarResolverSession session, String arg) throws Exception
      Description copied from class: Var
      The interface that needs to be implemented for subclasses of SimpleVar.
      Specified by:
      resolve in class Var
      Parameters:
      session - The session object used for a single instance of a var resolution.
      arg - The inside argument of the variable.
      Returns:
      The resolved value.
      Throws:
      Exception - Any exception can be thrown.
    • resolveTo

      public void resolveTo(VarResolverSession session, Writer w, String arg) throws Exception
      Description copied from class: Var
      The interface that needs to be implemented for subclasses of StreamedVar.
      Specified by:
      resolveTo in class Var
      Parameters:
      session - The session object used for a single instance of a var resolution.
      w - The writer to send the resolved value to.
      arg - The inside argument of the variable.
      Throws:
      Exception - Any exception can be thrown.