Uses of Class
org.webmacro.Context

Packages that use Context
org.webmacro   
org.webmacro.directive   
org.webmacro.engine   
org.webmacro.servlet   
org.webmacro.util   
 

Uses of Context in org.webmacro
 

Methods in org.webmacro that return Context
 Context WM.getContext()
          Instantiate a new context from a pool.
 Context Context.cloneContext()
          Create a copy of this context.
 Context WebMacro.getContext()
          Create a new Context.
 

Methods in org.webmacro with parameters of type Context
 void Macro.write(FastWriter out, Context context)
          Interpret the directive and write it out, using the values in the supplied context as appropriate.
 java.lang.Object Macro.evaluate(Context context)
          same as out but returns a String
 java.lang.Object ContextTool.init(Context c)
          A new tool object will be instantiated per-request by calling this method.
 void WM.writeTemplate(java.lang.String templateName, java.io.OutputStream out, Context context)
          Convenience method for writing a template to an OutputStream.
 void WM.writeTemplate(java.lang.String templateName, java.io.OutputStream out, java.lang.String encoding, Context context)
          Convienence method for writing a template to an OutputStream.
 void WebMacro.writeTemplate(java.lang.String templateName, java.io.OutputStream out, Context context)
          Convienence method for writing a template to an OutputStream.
 void WebMacro.writeTemplate(java.lang.String templateName, java.io.OutputStream out, java.lang.String encoding, Context context)
          Convienence method for writing a template to an OutputStream.
 

Uses of Context in org.webmacro.directive
 

Methods in org.webmacro.directive with parameters of type Context
 java.lang.Object Directive.evaluate(Context context)
           
protected static java.lang.String Directive.getWarningText(java.lang.String warning, Context context)
          Convenience method for directives to write HTML warnings into the output stream.
protected static void Directive.writeWarning(java.lang.String warning, Context context, FastWriter writer)
          Convenience method for directives to write HTML warnings into the output stream.
 void ForeachDirective.write(FastWriter out, Context context)
           
 void PropertyDirective.write(FastWriter out, Context context)
           
 void EscapeDirective.write(FastWriter out, Context context)
           
 void SetblockDirective.write(FastWriter out, Context context)
           
 void ParamDirective.write(FastWriter out, Context context)
           
 void AttributeDirective.write(FastWriter out, Context context)
           
 void SilenceDirective.write(FastWriter out, Context context)
           
 void TextDirective.write(FastWriter out, Context context)
           
 void IncludeDirective.write(FastWriter out, Context context)
          Write out the included file to the specified FastWriter.
 void DefaultDirective.write(FastWriter out, Context context)
           
 void SetDirective.write(FastWriter out, Context context)
           
 void BeanDirective.write(FastWriter out, Context context)
           
 void EncodeDirective.write(FastWriter out, Context context)
           
 void ProfileDirective.write(FastWriter out, Context context)
           
 void CommentDirective.write(FastWriter out, Context context)
           
 void AlternateDirective.write(FastWriter out, Context context)
           
 void DummyDirective.write(FastWriter out, Context context)
           
 void GlobalDirective.write(FastWriter out, Context context)
           
 java.lang.Object TypeDirective.evaluate(Context context)
          Ensure the class of the specified Variable reference isAssignableFrom from the classname arg.
 void TypeDirective.write(FastWriter fw, Context context)
          The #type directive does not produce output
 

Uses of Context in org.webmacro.engine
 

Subclasses of Context in org.webmacro.engine
 class BuildContext
          Contains data structures which are manipulated during the builder phase of parsing.
 

Methods in org.webmacro.engine with parameters of type Context
 void Expression.ExpressionBase.write(FastWriter out, Context context)
           
 java.lang.Object Expression.BinaryOperation.evaluate(Context context)
           
 java.lang.Object Expression.UnaryOperation.evaluate(Context context)
           
 java.lang.Object Expression.AndOperation.evaluate(Context context)
           
 java.lang.Object Expression.OrOperation.evaluate(Context context)
           
 java.lang.Object StringMacroAdapter.evaluate(Context context)
          Returns the wrapped object, context is ignored.
 void StringMacroAdapter.write(FastWriter out, Context context)
          Just calls toString() and writes that, context is ignored.
 java.lang.Object Variable.evaluate(Context context)
          Looks in the hashTable (context) for a value keyed to this variables name and returns the value string.
 void Variable.write(FastWriter out, Context context)
          Look in the hashtable (context) for a value keyed to this variables name and write its value to the stream.
abstract  java.lang.Object Variable.getValue(Context context)
          The code to get the value represented by the variable from the supplied context.
abstract  void Variable.setValue(Context c, java.lang.Object v)
          The code to set the value represented by the variable in the supplied context.
 java.lang.Object WMTemplate.evaluate(Context data)
          Parse the Template against the supplied context data and return it as a string.
 void WMTemplate.write(FastWriter out, Context data)
          A macro has a write method which takes a context and applies it to the macro to create a resulting String value, which is then written to the supplied stream.
 void VoidMacro.write(FastWriter out, Context context)
           
 java.lang.Object VoidMacro.evaluate(Context context)
          Returns null.
 java.lang.Object MacroAdapter.evaluate(Context context)
          Returns the wrapped object, context is ignored.
 void MacroAdapter.write(FastWriter out, Context context)
          Just calls toString() and writes that, context is ignored.
 void CrankyEvaluationExceptionHandler.evaluate(Variable variable, Context context, java.lang.Exception problem)
           
 java.lang.String CrankyEvaluationExceptionHandler.expand(Variable variable, Context context, java.lang.Exception problem)
           
 void DefaultEvaluationExceptionHandler.evaluate(Variable variable, Context context, java.lang.Exception problem)
           
 java.lang.String DefaultEvaluationExceptionHandler.expand(Variable variable, Context context, java.lang.Exception problem)
           
 void Block.write(FastWriter out, Context context)
          Interpret the directive and write it out, using the values in the supplied context as appropriate.
 java.lang.Object Block.evaluate(Context context)
          same as out but returns a String
 java.lang.String EvaluationExceptionHandler.expand(Variable variable, Context context, java.lang.Exception problem)
          When an exception is detected in the process of expanding (writing) a variable reference, this method is consulted.
 void EvaluationExceptionHandler.evaluate(Variable variable, Context context, java.lang.Exception problem)
          When an exception is detected in the process of evaluating a variable reference, this method is consulted.
 java.lang.Object PropertyOperatorCache.getProperty(Context context, java.lang.Object instance, java.lang.Object[] names, int start)
          Attempt to retrieve a property using the rules of property introspection described above.
 java.lang.Object PropertyOperatorCache.getProperty(Context context, java.lang.Object instance, java.lang.Object[] names)
          Calls getProperty(context, instance, names, 0)
 boolean PropertyOperatorCache.setProperty(Context context, java.lang.Object instance, java.lang.Object[] names, int start, java.lang.Object value)
          Given a property description name, attempt to set the property value to the supplied object.
 boolean PropertyOperatorCache.setProperty(Context context, java.lang.Object instance, java.lang.Object[] names, java.lang.Object value)
          Calls setProperty(context, names, 0, value)
 

Uses of Context in org.webmacro.servlet
 

Subclasses of Context in org.webmacro.servlet
 class WebContext
          This is an implementation of the WebContext interface.
 

Methods in org.webmacro.servlet that return Context
 Context WMServlet.getContext()
          Create a new Context object
 Context TemplateTool.MacroTemplate.getArgs()
          Exposes the context of the current MacroTemplate.
 

Methods in org.webmacro.servlet with parameters of type Context
 java.lang.Object MathTool.init(Context context)
          Tool initialization method.
 java.lang.Object TextTool.init(Context context)
          Tool initialization method.
 java.lang.Object FormTool.init(Context context)
           
 void WMServlet.writeTemplate(java.lang.String templateName, java.io.OutputStream out, Context context)
          Convenience method for writing a template to an OutputStream.
 void WMServlet.writeTemplate(java.lang.String templateName, java.io.OutputStream out, java.lang.String encoding, Context context)
          Convienence method for writing a template to an OutputStream.
 java.lang.Object CookieTool.init(Context context)
           
 java.lang.Object ResponseTool.init(Context context)
           
 java.lang.Object FormListTool.init(Context context)
           
 java.lang.Object CGITool.init(Context context)
           
 java.lang.Object LocaleTool.init(Context context)
           
 java.lang.Object TypeTool.init(Context context)
           
 java.lang.Object SessionTool.init(Context context)
           
 java.lang.Object RequestTool.init(Context context)
           
 java.lang.Object TemplateTool.init(Context c)
          Create a factory object that can be accessed from WMScript as $Template for creating MacroTemplate objects.
 java.lang.Object VariableTool.init(Context c)
           
 java.lang.Object ListTool.init(Context context)
           
 

Constructors in org.webmacro.servlet with parameters of type Context
MathTool(Context context)
          public constructor.
TextTool(Context context)
          public constructor.
TemplateTool.MacroTemplateFactory(Context ctx)
          Constructor
TemplateTool.MacroTemplate(Context c, Template t)
          Constructor
TemplateTool.MacroTemplate(Context c, java.lang.String src)
          Construct a MacroTemplate with a StringTemplate
VariableTool(Context newContext)
           
 

Uses of Context in org.webmacro.util
 

Methods in org.webmacro.util that return Context
 Context WMEval.getNewContext()
          Provides for a new context to be established.
 Context WMEval.getCurrentContext()
          Gets the current context.
 

Methods in org.webmacro.util with parameters of type Context
 java.lang.Object[] PropertyMethod.getArguments(Context context)
          Return the arguments for this method, after resolving them against the supplied context.
 void WMEval.assert(Context context)
          Deprecated.  
 void WMEval.eval(Context context)
          Evaluate the context supplied against the current rule.
 void WMEval.assert(Context context, Template rule, java.io.OutputStream out, java.lang.String encoding)
          Deprecated.  
 void WMEval.eval(Context context, Template rule, java.io.OutputStream out, java.lang.String encoding)
          Evaluate the supplied context and template to the provided output.
 java.lang.String WMEval.assert(Context context, Template rule)
          Evaluate the supplied context and template and return the result as a as a string.
 java.lang.String WMEval.eval(Context context, Template rule)
          Evaluate the supplied context and template and return the result as a as a string.
 java.lang.String WMEval.eval(Context context, java.lang.String templateResourceFile, java.lang.String outputFileName, boolean append, java.lang.String encoding)
          Evaluates the context using a file template sending the output to a disk file.