|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.Reader gnu.text.Lexer gnu.xquery.lang.XQParser
public class XQParser
A class to read xquery forms.
Field Summary | |
---|---|
static java.lang.String[] |
axisNames
|
Namespace[] |
functionNamespacePath
|
static InstanceOf |
instanceOf
|
static boolean |
warnOldVersion
|
Fields inherited from class gnu.text.Lexer |
---|
interactive, nesting, port, tokenBuffer, tokenBufferLength |
Fields inherited from class java.io.Reader |
---|
lock |
Constructor Summary | |
---|---|
XQParser(InPort port,
SourceMessages messages,
XQuery interp)
|
Method Summary | |
---|---|
void |
appendNamedEntity(java.lang.String name)
|
static Expression |
booleanValue(Expression exp)
Coerce the value of an expresison to a boolean value. |
Expression |
declError(java.lang.String message)
|
void |
error(char severity,
java.lang.String message)
|
void |
getDelimited(java.lang.String delimiter)
Scan until a given delimiter. |
static boolean |
isNamePart(char ch)
|
static boolean |
isNameStart(char ch)
|
static Expression |
makeFunctionExp(java.lang.String className,
java.lang.String name)
|
static Expression |
makeFunctionExp(java.lang.String className,
java.lang.String fieldName,
java.lang.String name)
|
void |
mark()
Start tentative parsing. |
boolean |
match(java.lang.String word)
|
Expression |
parse(Compilation comp)
Parse an expression. |
Expression |
parseDataType()
|
Type |
parseElementType()
|
Expression |
parseFLWRExpression(boolean isFor)
|
Expression |
parseFLWRInner(boolean isFor)
Parse a let- or a for-expression. |
Expression |
parseFunctionDefinition(int declLine,
int declColumn)
|
Expression |
parseIfExpr()
|
Type |
parseItemType()
|
Expression |
parseOptionalTypeDeclaration()
Parse: ["as" SequenceType] |
Expression |
parseQuantifiedExpr(boolean isEvery)
Parse a some- or an every-expression. |
java.lang.Object |
parseVariable()
Parse a Variable. |
Declaration |
parseVariableDeclaration()
|
java.lang.Object |
readObject()
|
void |
reset()
Stop tentative parsing. |
void |
setInteractive(boolean v)
|
void |
setType(Declaration decl,
Expression type)
|
static Expression |
stringValue(Expression exp)
Coerce the value of an expresison to a string value. |
Expression |
syntaxError(java.lang.String message)
Handle syntax errors (at rewrite time). |
Methods inherited from class gnu.text.Lexer |
---|
checkErrors, checkNext, clearErrors, close, eofError, eofError, error, error, fatal, getColumnNumber, getErrors, getLineNumber, getMessages, getName, getPort, isInteractive, peek, popNesting, pushNesting, read, read, readDigitsInBuffer, readOptionalExponent, seenErrors, setMessages, skip_quick, skip, tokenBufferAppend, unread_quick, unread, unread |
Methods inherited from class java.io.Reader |
---|
mark, markSupported, read, read, ready, skip |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static boolean warnOldVersion
public static final InstanceOf instanceOf
public Namespace[] functionNamespacePath
public static final java.lang.String[] axisNames
Constructor Detail |
---|
public XQParser(InPort port, SourceMessages messages, XQuery interp)
Method Detail |
---|
public static boolean isNameStart(char ch)
public static boolean isNamePart(char ch)
public void mark() throws java.io.IOException
Lexer
mark
in class Lexer
java.io.IOException
public void reset() throws java.io.IOException
Lexer
reset
in class Lexer
java.io.IOException
public void getDelimited(java.lang.String delimiter) throws java.io.IOException, SyntaxException
java.io.IOException
SyntaxException
public void appendNamedEntity(java.lang.String name)
public void setInteractive(boolean v)
setInteractive
in class Lexer
public Type parseElementType() throws java.io.IOException, SyntaxException
java.io.IOException
SyntaxException
public Expression parseOptionalTypeDeclaration() throws java.io.IOException, SyntaxException
java.io.IOException
SyntaxException
public void setType(Declaration decl, Expression type)
public Expression parseDataType() throws java.io.IOException, SyntaxException
java.io.IOException
SyntaxException
public Type parseItemType() throws java.io.IOException, SyntaxException
java.io.IOException
SyntaxException
public static Expression stringValue(Expression exp)
public static Expression booleanValue(Expression exp)
public Expression parseIfExpr() throws java.io.IOException, SyntaxException
java.io.IOException
SyntaxException
public boolean match(java.lang.String word)
public java.lang.Object parseVariable() throws java.io.IOException, SyntaxException
java.io.IOException
SyntaxException
public Declaration parseVariableDeclaration() throws java.io.IOException, SyntaxException
java.io.IOException
SyntaxException
public Expression parseFLWRExpression(boolean isFor) throws java.io.IOException, SyntaxException
java.io.IOException
SyntaxException
public Expression parseFLWRInner(boolean isFor) throws java.io.IOException, SyntaxException
java.io.IOException
SyntaxException
public Expression parseQuantifiedExpr(boolean isEvery) throws java.io.IOException, SyntaxException
java.io.IOException
SyntaxException
public Expression parseFunctionDefinition(int declLine, int declColumn) throws java.io.IOException, SyntaxException
java.io.IOException
SyntaxException
public java.lang.Object readObject() throws java.io.IOException, SyntaxException
java.io.IOException
SyntaxException
public Expression parse(Compilation comp) throws java.io.IOException, SyntaxException
java.io.IOException
SyntaxException
public static Expression makeFunctionExp(java.lang.String className, java.lang.String name)
public static Expression makeFunctionExp(java.lang.String className, java.lang.String fieldName, java.lang.String name)
public void error(char severity, java.lang.String message)
error
in class Lexer
public Expression declError(java.lang.String message) throws java.io.IOException, SyntaxException
java.io.IOException
SyntaxException
public Expression syntaxError(java.lang.String message) throws java.io.IOException, SyntaxException
message
- an error message to print out
java.io.IOException
SyntaxException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |