public class StringToken extends Token
Modifier and Type | Field and Description |
---|---|
IDContextProvider2 |
context |
protected boolean |
ignorable |
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,
String literal,
IDContextProvider2 context) |
StringToken(REDocumentDeclaration docDecl,
String literal,
IDContextProvider2 context,
DatatypeRef refType) |
StringToken(ResidualCalculator resCalc,
String literal,
IDContextProvider2 context,
DatatypeRef refType) |
Modifier and Type | Method and Description |
---|---|
protected StringToken |
createChildStringToken(String literal,
DatatypeRef dtRef) |
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 String literal
public final IDContextProvider2 context
protected final ResidualCalculator resCalc
protected final boolean ignorable
public DatatypeRef refType
protected boolean saturated
public StringToken(REDocumentDeclaration docDecl, String literal, IDContextProvider2 context)
public StringToken(REDocumentDeclaration docDecl, String literal, IDContextProvider2 context, DatatypeRef refType)
public StringToken(ResidualCalculator resCalc, String literal, IDContextProvider2 context, DatatypeRef refType)
public boolean match(DataExp exp)
public boolean match(ListExp exp)
protected StringToken createChildStringToken(String literal, DatatypeRef dtRef)
public boolean matchAnyString()
Token
matchAnyString
in class Token
Copyright © 2016 Oracle Corporation. All rights reserved.