public class PathTokenizer extends Object
Modifier and Type | Method and Description |
---|---|
static List<String> |
applySpecialPaths(List<String> pathTokens)
Apply any .
|
static String |
applySpecialPaths(String path)
Apply any .
|
static String |
getRemainingPath(List<String> tokens,
int i)
Get the remaining path from some tokens
|
protected static String |
getRemainingPath(List<String> tokens,
int i,
int end)
Get the remaining path from some tokens
|
static void |
getTokens(List<String> list,
String path)
Get the tokens that comprise this path and append them to the list.
|
static List<String> |
getTokens(String path)
Get the tokens that comprise this path.
|
static boolean |
isCurrentToken(String token)
Is current token.
|
static boolean |
isReverseToken(String token)
Is reverse token.
|
protected static String getRemainingPath(List<String> tokens, int i, int end)
tokens
- the tokensi
- the current locationend
- the end indexIllegalArgumentException
- for null tokens or i is out of rangepublic static List<String> getTokens(String path)
path
- the pathIllegalArgumentException
- if the path is nullpublic static void getTokens(List<String> list, String path)
path
- the pathIllegalArgumentException
- if the path is nullpublic static String getRemainingPath(List<String> tokens, int i)
tokens
- the tokensi
- the current locationIllegalArgumentException
- for null tokens or i is out of rangepublic static String applySpecialPaths(String path) throws IllegalArgumentException
path
- the pathIllegalArgumentException
public static List<String> applySpecialPaths(List<String> pathTokens) throws IllegalArgumentException
pathTokens
- the path tokensIllegalArgumentException
- if reverse path goes over the top pathpublic static boolean isCurrentToken(String token)
token
- the token to checkpublic static boolean isReverseToken(String token)
token
- the token to checkCopyright © 2012 JBoss by Red Hat. All Rights Reserved.