org.kohsuke.stapler
Class TokenList

java.lang.Object
  extended by org.kohsuke.stapler.TokenList

public final class TokenList
extends Object

Tokenized strings.

Author:
Kohsuke Kawaguchi

Field Summary
 int idx
          Index of the next token.
 String[] rawTokens
           
 String[] tokens
           
 
Method Summary
 String assembleOriginalRestOfPath()
           
 String assembleRestOfPath()
           
 int countRemainingTokens()
           
static String decode(String s)
           
 String get(int i)
           
 boolean hasMore()
           
 int length()
           
 String next()
           
 int nextAsInt()
           
 String peek()
           
 String prev()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

tokens

public final String[] tokens

rawTokens

public final String[] rawTokens

idx

public int idx
Index of the next token.

Method Detail

hasMore

public boolean hasMore()

peek

public String peek()

next

public String next()

prev

public String prev()

nextAsInt

public int nextAsInt()
              throws NumberFormatException
Throws:
NumberFormatException

length

public int length()

get

public String get(int i)

countRemainingTokens

public int countRemainingTokens()

toString

public String toString()
Overrides:
toString in class Object

assembleRestOfPath

public String assembleRestOfPath()

assembleOriginalRestOfPath

public String assembleOriginalRestOfPath()

decode

public static String decode(String s)


Copyright © 2010. All Rights Reserved.