public class StringToken extends Token
Modifier and Type | Field and Description |
---|---|
IDContextProvider2 |
context |
protected boolean |
ignorable |
private static org.relaxng.datatype.Datatype[] |
ignoredType |
java.lang.String |
literal |
DatatypeRef |
refType
if this field is non-null,
this field will receive assigned DataType object.
|
protected ResidualCalculator |
resCalc |
protected boolean |
saturated |
Constructor and Description |
---|
StringToken(REDocumentDeclaration docDecl,
java.lang.String literal,
IDContextProvider2 context) |
StringToken(REDocumentDeclaration docDecl,
java.lang.String literal,
IDContextProvider2 context,
DatatypeRef refType) |
StringToken(ResidualCalculator resCalc,
java.lang.String literal,
IDContextProvider2 context,
DatatypeRef refType) |
Modifier and Type | Method and Description |
---|---|
private void |
assignType(org.relaxng.datatype.Datatype dt) |
protected StringToken |
createChildStringToken(java.lang.String literal,
DatatypeRef dtRef) |
(package private) boolean |
isIgnorable()
checks if this token is ignorable.
|
boolean |
match(DataExp exp)
DataExp can consume this token if its datatype can accept this string
|
boolean |
match(ListExp exp)
ListExp can consume this token if its pattern accepts this string
|
boolean |
match(ValueExp exp) |
boolean |
matchAnyString()
returns true if anyString pattern can consume this token
|
public final java.lang.String literal
public final IDContextProvider2 context
protected final ResidualCalculator resCalc
protected final boolean ignorable
public DatatypeRef refType
protected boolean saturated
private static final org.relaxng.datatype.Datatype[] ignoredType
public StringToken(REDocumentDeclaration docDecl, java.lang.String literal, IDContextProvider2 context)
public StringToken(REDocumentDeclaration docDecl, java.lang.String literal, IDContextProvider2 context, DatatypeRef refType)
public StringToken(ResidualCalculator resCalc, java.lang.String literal, IDContextProvider2 context, DatatypeRef refType)
public boolean match(DataExp exp)
public boolean match(ListExp exp)
protected StringToken createChildStringToken(java.lang.String literal, DatatypeRef dtRef)
public boolean matchAnyString()
Token
matchAnyString
in class Token
private void assignType(org.relaxng.datatype.Datatype dt)
boolean isIgnorable()
isIgnorable
in class Token