|
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.WhiteSpace
public static class UdtLib.WhiteSpace
UDT for any of several choices for white space characters.
| Field Summary |
|---|
| Fields inherited from class com.coasttocoastresearch.apg.Parser.UdtCallback |
|---|
callbackData |
| Constructor Summary | |
|---|---|
UdtLib.WhiteSpace(Parser parser)
Default constructor. |
|
UdtLib.WhiteSpace(Parser parser,
boolean optional,
UdtLib.Comment comment,
UdtLib.LineEnd foldingLineEnd)
General constructor. |
|
| 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.WhiteSpace(Parser parser)
x20)
or horizontal tab (x09) characters.
parser - the Parser object this UDT is attached to.
public UdtLib.WhiteSpace(Parser parser,
boolean optional,
UdtLib.Comment comment,
UdtLib.LineEnd foldingLineEnd)
x20) or horizontal tab(x09).
Optionally white space additionally may include line comments and/or
folding white space.
Folding white space, found in many Internet standards, is a line end followed by
one standard white space character.
parser - the Parser object this UDT is attached to.optional - if true, the white space is optional,
if false at least one white space character or entity is required.comment - if null, comments are not considered white space,
otherwise comment is a Comment class object or any Comment extension object.foldingLineEnd - if null, folding white space is not allowed.
Otherwise folding white space is allowed and
foldingLineEnd is a LineEnd class object or any LineEnd extension object.| 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 | ||||||||