|
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
com.coasttocoastresearch.apg.UdtLib.Comment
public static class UdtLib.Comment
UDT for many common comment formats.
Comments are defined by one or two leading characters and the comment
will include all following characters up to but not including
the next line end character (x0A or x0D)
| Field Summary |
|---|
| Fields inherited from class com.coasttocoastresearch.apg.Parser.UdtCallback |
|---|
callbackData |
| Constructor Summary | |
|---|---|
UdtLib.Comment(Parser parser,
char begin)
Constructor for a comment beginning with a single character. |
|
UdtLib.Comment(Parser parser,
char begin1,
char begin2)
Constructor for a comment beginning with a pair of characters |
|
| Method Summary | |
|---|---|
int |
callback(int offset)
The UDT function. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UdtLib.Comment(Parser parser,
char begin)
parser - the Parser object this UDT is attached to.begin - the first character which defines the beginning of the comment.
public UdtLib.Comment(Parser parser,
char begin1,
char begin2)
parser - the Parser object this UDT is attached to.begin1 - the first character of the beginning pair.begin2 - the second character of the beginning pair.| Method Detail |
|---|
public int callback(int offset)
Parser.UdtCallback
callback in class Parser.UdtCallbackoffset - 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 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 | ||||||||