electric.util.lex
Class Lex
java.lang.Object
electric.util.lex.Lex
- public final class Lex
- extends java.lang.Object
Lex is a lexical analyzer.
- Author:
- webMethods
Constructor Summary |
Lex(java.io.Reader reader)
|
Lex(java.io.Reader reader,
java.lang.String defaultDelimiters,
int defaultFlags)
|
Lex(java.lang.String string)
|
Lex(java.lang.String string,
java.lang.String defaultDelimiters,
int defaultFlags)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SKIP_WS
public static final int SKIP_WS
- See Also:
- Constant Field Values
CONSUME
public static final int CONSUME
- See Also:
- Constant Field Values
INCLUDE
public static final int INCLUDE
- See Also:
- Constant Field Values
EOF_OK
public static final int EOF_OK
- See Also:
- Constant Field Values
QUOTES
public static final int QUOTES
- See Also:
- Constant Field Values
STRIP
public static final int STRIP
- See Also:
- Constant Field Values
HTML
public static final int HTML
- See Also:
- Constant Field Values
COMMENTS
public static final int COMMENTS
- See Also:
- Constant Field Values
Lex
public Lex(java.lang.String string)
- Parameters:
string
-
Lex
public Lex(java.io.Reader reader)
- Parameters:
reader
-
Lex
public Lex(java.lang.String string,
java.lang.String defaultDelimiters,
int defaultFlags)
- Parameters:
string
- defaultDelimiters
- defaultFlags
-
Lex
public Lex(java.io.Reader reader,
java.lang.String defaultDelimiters,
int defaultFlags)
- Parameters:
reader
- defaultDelimiters
- defaultFlags
-
getComment
public java.lang.String getComment()
clearComment
public void clearComment()
readToPattern
public java.lang.String readToPattern(java.lang.String pattern,
int flags)
throws java.io.IOException
- Parameters:
pattern
- flags
-
- Throws:
java.io.IOException
readToDelimiter
public java.lang.String readToDelimiter(java.lang.String delimiters,
int flags)
throws java.io.IOException
- Parameters:
delimiters
- flags
-
- Throws:
java.io.IOException
readToDelimiter
public java.lang.String readToDelimiter(java.lang.String delimiters)
throws java.io.IOException
- Parameters:
delimiters
-
- Throws:
java.io.IOException
readToken
public java.lang.String readToken()
throws java.io.IOException
- Throws:
java.io.IOException
readToken
public void readToken(java.lang.String expected)
throws java.io.IOException
- Parameters:
expected
-
- Throws:
java.io.IOException
readHTML
public void readHTML(java.lang.StringBuffer buffer)
throws java.io.IOException
- Parameters:
buffer
-
- Throws:
java.io.IOException
readChar
public int readChar()
throws java.io.IOException
- Throws:
java.io.IOException
readChar
public void readChar(int expected)
throws java.io.IOException
- Parameters:
expected
-
- Throws:
java.io.IOException
readTo
public java.lang.String readTo(int ch)
throws java.io.IOException
- Parameters:
ch
-
- Throws:
java.io.IOException
readWhitespace
public java.lang.StringBuffer readWhitespace()
throws java.io.IOException
- Throws:
java.io.IOException
readWhitespace
public java.lang.StringBuffer readWhitespace(int flags)
throws java.io.IOException
- Parameters:
flags
-
- Throws:
java.io.IOException
skipWhitespace
public void skipWhitespace()
throws java.io.IOException
- Throws:
java.io.IOException
skipWhitespace
public void skipWhitespace(int flags)
throws java.io.IOException
- Parameters:
flags
-
- Throws:
java.io.IOException
peekString
public java.lang.String peekString(int length)
throws java.io.IOException
- Parameters:
length
-
- Throws:
java.io.IOException
peekString
public boolean peekString(java.lang.String string)
throws java.io.IOException
- Parameters:
string
-
- Throws:
java.io.IOException
peek
public void peek(int[] buffer)
throws java.io.IOException
- Parameters:
buffer
-
- Throws:
java.io.IOException
peek
public int peek()
throws java.io.IOException
- Throws:
java.io.IOException
mark
public void mark(int length)
throws java.io.IOException
- Parameters:
length
-
- Throws:
java.io.IOException
reset
public void reset()
throws java.io.IOException
- Throws:
java.io.IOException
eof
public boolean eof()
throws java.io.IOException
- Throws:
java.io.IOException
skip
public void skip(int length)
throws java.io.IOException
- Parameters:
length
-
- Throws:
java.io.IOException
getLocation
public java.lang.String getLocation()
getLineNumber
public int getLineNumber()
peekRead
public int peekRead()
throws java.io.IOException
- Throws:
java.io.IOException
read
public int read()
throws java.io.IOException
- Throws:
java.io.IOException
setWindow
public void setWindow(int length)
- Parameters:
length
-
copyright© 2001-2004 by webMethods All Rights Reserved.