org.webmacro.engine
Class MacroBuilder

java.lang.Object
  extended byorg.webmacro.engine.MacroBuilder
All Implemented Interfaces:
Builder

public class MacroBuilder
extends java.lang.Object
implements Builder

MacroBuilder.java Represents the invocation of a (C-style) macro, which gets expanded during the building of a template. Not to be confused with Macro as used by WebMacro, which is something else.

Author:
Brian Goetz

Constructor Summary
MacroBuilder(java.lang.String name, ListBuilder argsBuilder, int lineNo, int colNo)
           
 
Method Summary
 java.lang.Object build(BuildContext bc)
          Expand the macro.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MacroBuilder

public MacroBuilder(java.lang.String name,
                    ListBuilder argsBuilder,
                    int lineNo,
                    int colNo)
Method Detail

build

public java.lang.Object build(BuildContext bc)
                       throws BuildException
Expand the macro. Gets the macro definition from the build context.

Specified by:
build in interface Builder
Throws:
BuildException


Copyright © 1999-2006 WebMacro. All Rights Reserved.