org.apache.commons.ognl
Class DynamicSubscript

java.lang.Object
  extended by org.apache.commons.ognl.DynamicSubscript

public class DynamicSubscript
extends Object

This class has predefined instances that stand for OGNL's special "dynamic subscripts" for getting at the first, middle, or last elements of a list. In OGNL expressions, these subscripts look like special kinds of array indexes: [^] means the first element, [$] means the last, [|] means the middle, and [*] means the whole list.

Author:
Luke Blanshard (blanshlu@netscape.net), Drew Davidson (drew@ognl.org)

Field Summary
static DynamicSubscript all
           
static int ALL
           
static DynamicSubscript first
           
static int FIRST
           
static DynamicSubscript last
           
static int LAST
           
static DynamicSubscript mid
           
static int MID
           
 
Method Summary
 int getFlag()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

FIRST

public static final int FIRST
See Also:
Constant Field Values

MID

public static final int MID
See Also:
Constant Field Values

LAST

public static final int LAST
See Also:
Constant Field Values

ALL

public static final int ALL
See Also:
Constant Field Values

first

public static final DynamicSubscript first

mid

public static final DynamicSubscript mid

last

public static final DynamicSubscript last

all

public static final DynamicSubscript all
Method Detail

getFlag

public int getFlag()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 1997-2013 The Apache Software Foundation. All Rights Reserved.