public class PatternDoc extends TreeDoc
Modifier and Type | Field and Description |
---|---|
private boolean |
m_bol |
private int |
m_caseValue |
private boolean |
m_internal |
private int |
m_lineNumber |
private boolean |
m_nocase |
private java.lang.String |
m_pattern |
private int |
m_trailContext |
Constructor and Description |
---|
PatternDoc() |
Modifier and Type | Method and Description |
---|---|
int |
getCaseValue()
Obtain the case value in the lexer.
|
int |
getLineNumber() |
java.lang.String |
getPattern() |
int |
getTrailContext()
Get the trail context of the pattern.
|
int |
getTrailLength() |
boolean |
isBOL() |
boolean |
isInternal()
Check if this pattern is internally generaeted.
|
boolean |
isNocase() |
void |
setBOL(boolean bol) |
void |
setCaseValue(int caseValue)
Set the case value in the lexer.
|
(package private) void |
setInternal() |
void |
setLineNumber(int lineNumber) |
void |
setNocase(boolean nocase) |
void |
setPattern(java.lang.String pattern) |
void |
setTrailContext(int trailContext)
This is an internal function which is called after processing the pattern
to determine the trail context.
|
getProperty, setProperty
private java.lang.String m_pattern
private boolean m_nocase
private boolean m_bol
private int m_caseValue
private boolean m_internal
private int m_trailContext
private int m_lineNumber
public void setPattern(java.lang.String pattern)
public java.lang.String getPattern()
public boolean isNocase()
public void setNocase(boolean nocase)
public boolean isBOL()
public void setBOL(boolean bol)
public int getCaseValue()
public void setCaseValue(int caseValue)
caseValue
- Computed caes value in DFA.public boolean isInternal()
void setInternal()
public void setTrailContext(int trailContext)
trailContext
- the trail context of the pattern.public int getTrailContext()
public int getTrailLength()
public int getLineNumber()
public void setLineNumber(int lineNumber)