net.sourceforge.templat.expr
Class ArraySubscript

java.lang.Object
  extended by net.sourceforge.templat.expr.ArraySubscript
All Implemented Interfaces:
Selector

 class ArraySubscript
extends Object
implements Selector


Constructor Summary
ArraySubscript(int subscript)
           
 
Method Summary
 Object apply(Object var)
          Applies this selector to the given variable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArraySubscript

public ArraySubscript(int subscript)
Method Detail

apply

public Object apply(Object var)
             throws TemplateParsingException
Description copied from interface: Selector
Applies this selector to the given variable.

Specified by:
apply in interface Selector
Parameters:
var - variable to apply this selector to
Returns:
the result of applying this selector to the given variable
Throws:
TemplateParsingException