org.postgresql.geometric.PGbox , org.postgresql.geometric.PGcircle , org.postgresql.geometric.PGlseg , org.postgresql.geometric.PGpath , org.postgresql.geometric.PGpoint , org.postgresql.geometric.PGpolygon
| Modifier and Type | Field and Description |
|---|---|
| private static final Map | |
| protected List |
| Access | Constructor and Description |
|---|---|
| public | PGtokenizer(String
containing tokens string, char single character to split the tokens delim)Create a tokeniser. |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public String | |
| public static String | |
| public void | |
| public static String | Returns: String without the < or >String to remove from s)Removes < and > from the beginning and end of a string. |
| public void | |
| public static String | |
| public void | |
| public static String | Returns: String without the { or }String to remove from s)Removes curly braces { and } from the beginning and end of a string. |
| public void | |
| public static String | Returns: String without the ( or )String to remove from s)Removes ( and ) from the beginning and end of a string. |
| public void | |
| public int | |
| public PGtokenizer | Returns: A new instance of PGtokenizer based on the tokenToken number ( 0 ... getSize()-1 ) n, char The delimiter to use delim)This returns a new tokenizer based on one of our tokens. |
| CLOSING_TO_OPENING_CHARACTER | back to summary |
|---|---|
| private static final Map<Character, Character> CLOSING_TO_OPENING_CHARACTER | |
| tokens | back to summary |
|---|---|
| protected List<String> tokens | |
| PGtokenizer | back to summary |
|---|---|
| public PGtokenizer(String string, char delim) Create a tokeniser. We could have used StringTokenizer to do this, however, we needed to handle nesting of '(' ')' '[' ']' '<' and '>' as these are used by the geometric data types.
| |
| getSize | back to summary |
|---|---|
public int getSize()
| |
| getToken | back to summary |
|---|---|
public String getToken(int n)
| |
| remove | back to summary |
|---|---|
| public static String remove(String s, String l, String t) This removes the lead/trailing strings from a string. | |
| remove | back to summary |
|---|---|
| public void remove(String l, String t) This removes the lead/trailing strings from all tokens. | |
| removeAngle | back to summary |
|---|---|
| public static String removeAngle(String s) Removes < and > from the beginning and end of a string. | |
| removeAngle | back to summary |
|---|---|
| public void removeAngle() Removes < and > from the beginning and end of all tokens. | |
| removeBox | back to summary |
|---|---|
| public static String removeBox(String s) Removes [ and ] from the beginning and end of a string. | |
| removeBox | back to summary |
|---|---|
| public void removeBox() Removes [ and ] from the beginning and end of all tokens. | |
| removeCurlyBrace | back to summary |
|---|---|
| public static String removeCurlyBrace(String s) Removes curly braces { and } from the beginning and end of a string. | |
| removeCurlyBrace | back to summary |
|---|---|
| public void removeCurlyBrace() Removes < and > from the beginning and end of all tokens. | |
| removePara | back to summary |
|---|---|
| public static String removePara(String s) Removes ( and ) from the beginning and end of a string. | |
| removePara | back to summary |
|---|---|
| public void removePara() Removes ( and ) from the beginning and end of all tokens. | |
| tokenize | back to summary |
|---|---|
| public int tokenize(String string, char delim) This resets this tokenizer with a new string and/or delimiter.
| |
| tokenizeToken | back to summary |
|---|---|
| public PGtokenizer tokenizeToken(int n, char delim) This returns a new tokenizer based on one of our tokens. The geometric datatypes use this to process nested tokens (usually PGpoint).
| |