Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

ognl
Class DynamicSubscript  view DynamicSubscript download DynamicSubscript.java

java.lang.Object
  extended byognl.DynamicSubscript

public class DynamicSubscript
extends java.lang.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.


Field Summary
static DynamicSubscript all
           
static int ALL
           
static DynamicSubscript first
           
static int FIRST
           
private  int flag
           
static DynamicSubscript last
           
static int LAST
           
static DynamicSubscript mid
           
static int MID
           
 
Constructor Summary
private DynamicSubscript(int flag)
           
 
Method Summary
 int getFlag()
           
 java.lang.String toString()
          Convert this Object to a human-readable String.
 
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

flag

private int flag
Constructor Detail

DynamicSubscript

private DynamicSubscript(int flag)
Method Detail

getFlag

public int getFlag()

toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).