|
Java APG, Version 1.0 Author Lowell D. Thomas Copyright © Coast to Coast Research, Inc. 2011 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.coasttocoastresearch.apg.Parser.UdtCallback
public abstract static class Parser.UdtCallback
Base class for all User-Defined Terminals (UDTs).
| Field Summary | |
|---|---|
Parser.CallbackData |
callbackData
Parser-provisioned data available to all UDT callback functions |
| Constructor Summary | |
|---|---|
Parser.UdtCallback(Parser parser)
Base class constructor for the UDT callback functions. |
|
| Method Summary | |
|---|---|
abstract int |
callback(int offset)
The UDT function. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final Parser.CallbackData callbackData
| Constructor Detail |
|---|
public Parser.UdtCallback(Parser parser)
parser - the instance of the Parser to attach this callback function to.| Method Detail |
|---|
public abstract int callback(int offset)
throws java.lang.Exception
offset - offset into the input string to the first character of the parsed phrase.
L,
or -1 if no phrase was matched.
The phrase length must be in the range 0 <= L <=(n-1),
where n is the remaining number of characters in the input string.
java.lang.Exception - thrown if the callback function returns an illegal value.
An illegal value would be a phrase length L >= n, or
Illegal values are phrase lengths longer than the length of the remaining input string
or a zero (empty) length by a UDT designated as non-empty.
(UDTs having names beginning with "u_" are designated as non-empty.
UDTs having names beginning with "e_" are designated as empty.)
|
Java APG, Version 1.0 Author Lowell D. Thomas Copyright © Coast to Coast Research, Inc. 2011 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||