org.millscript.millscript.loaders
Class ShortcutArgName

java.lang.Object
  extended by org.millscript.millscript.loaders.ShortcutArgName
All Implemented Interfaces:
SpecialTemplateName

public class ShortcutArgName
extends java.lang.Object
implements SpecialTemplateName

This class compiles a shortcut argument element in a MillScript XHTML template. A shortcut argument element has a name begining with arg and has a single digit after that, e.g. arg1 is a shortcut for <arg n="1" />.


Constructor Summary
ShortcutArgName(BasicTemplateLoader btl, int n)
          Constructs a new shortcut argument element handler, to insert expressions for the specified argument number into the specified loader.
 
Method Summary
 void handle()
          Calling this method will generate the required expressions at the current point in the expression tree.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShortcutArgName

public ShortcutArgName(BasicTemplateLoader btl,
                       int n)
Constructs a new shortcut argument element handler, to insert expressions for the specified argument number into the specified loader.

Parameters:
btl - the loader to insert expressions into
n - the argument number of this shortcut
Method Detail

handle

public void handle()
Description copied from interface: SpecialTemplateName
Calling this method will generate the required expressions at the current point in the expression tree.

Specified by:
handle in interface SpecialTemplateName
See Also:
SpecialTemplateName.handle()


Copyright © 2001-2007 Open World Ltd. All Rights Reserved.