Top Fields Constructors Methods
org.joni

pack-priv Class Lexer

extends ScannerSupport
Class Inheritance
Known Direct Subclasses
org.joni.Parser
Static Imports
org.joni.Option.isAsciiRange, .Option.isSingleline, .Option.isWordBoundAllRange, org.joni.ast.QuantifierNode.isRepeatInfinite

Field Summary

Modifier and TypeField and Description
protected final ScanEnvironment
protected final Regex
private static final int[]
protected final Syntax
protected final Token
Inherited from org.joni.ScannerSupport:
_pbytescencpstop

Constructor Summary

AccessConstructor and Description
protected
Lexer(Regex regex, Syntax syntax, byte[] bytes, int p, int end, WarnCallback warnings)

Method Summary

Modifier and TypeMethod and Description
protected final int
backrefRelToAbs(int relNo)

protected final int
private void
private void
private void
protected final int
fetchName(int startCode, boolean ref)

protected void
private int
fetchNameErr(int src, int nameEnd, String err)

private int
fetchNameForNamedGroup(int startCode, boolean ref)

private final int
fetchNameForNoNamedGroup(int startCode, boolean ref)

private int
fetchNameTeardown(int src, int endCode, int nameEnd, String err)

private boolean
fetchNameWithLevel(int startCode, Ptr rbackNum, Ptr rlevel)

private int

Returns:

0: normal {n,m}, 2: fixed {n} !introduce returnCode here
fetchRangeQuantifier
()

protected final void
private void
fetchTokenFor_anchor(int subType)

private void
private void
private void
private void
private void
private void
fetchTokenFor_repeat(int lower, int upper)

private void
private void
private void
private void
protected final TokenType
private void
private void
fetchTokenInCCFor_charType(boolean flag, int type)

private void
private void
private void
private void
private void
private void
private int
invalidRangeQuantifier(boolean synAllow)

private int
nameEndCodePoint(int start)

private void
private boolean
strExistCheckWithEsc(int[] s, int n, int bad)

protected final void
syntaxWarn(String message, char c)

protected final void
syntaxWarn(String message)

Inherited from org.joni.ScannerSupport:
fetchfetchTogetBegingetEndincleftmarknewInternalExceptionnewSyntaxExceptionnewValueExceptionnewValueExceptionnewValueExceptionpeekpeekIsresetrestorescanUnsignedHexadecimalNumberscanUnsignedNumberscanUnsignedOctalNumberunfetch

Field Detail

envback to summary
protected final ScanEnvironment env
regexback to summary
protected final Regex regex
sendback to summary
private static final int[] send
syntaxback to summary
protected final Syntax syntax
tokenback to summary
protected final Token token

Constructor Detail

Lexerback to summary
protected Lexer(Regex regex, Syntax syntax, byte[] bytes, int p, int end, WarnCallback warnings)

Method Detail

backrefRelToAbsback to summary
protected final int backrefRelToAbs(int relNo)
fetchCharPropertyToCTypeback to summary
protected final int fetchCharPropertyToCType()
fetchEscapedValueback to summary
private void fetchEscapedValue()
fetchEscapedValueBackSlashback to summary
private void fetchEscapedValueBackSlash()
fetchEscapedValueControlback to summary
private void fetchEscapedValueControl()
fetchNameback to summary
protected final int fetchName(int startCode, boolean ref)
fetchNamedBackrefTokenback to summary
protected void fetchNamedBackrefToken()
fetchNameErrback to summary
private int fetchNameErr(int src, int nameEnd, String err)
fetchNameForNamedGroupback to summary
private int fetchNameForNamedGroup(int startCode, boolean ref)
fetchNameForNoNamedGroupback to summary
private final int fetchNameForNoNamedGroup(int startCode, boolean ref)
fetchNameTeardownback to summary
private int fetchNameTeardown(int src, int endCode, int nameEnd, String err)
fetchNameWithLevelback to summary
private boolean fetchNameWithLevel(int startCode, Ptr rbackNum, Ptr rlevel)
fetchRangeQuantifierback to summary
private int fetchRangeQuantifier()
Returns:int

0: normal {n,m}, 2: fixed {n} !introduce returnCode here

fetchTokenback to summary
protected final void fetchToken()
fetchTokenFor_anchorback to summary
private void fetchTokenFor_anchor(int subType)
fetchTokenFor_charPropertyback to summary
private void fetchTokenFor_charProperty()
fetchTokenFor_digitback to summary
private void fetchTokenFor_digit()
fetchTokenFor_metaCharsback to summary
private void fetchTokenFor_metaChars()
fetchTokenFor_NamedBackrefback to summary
private void fetchTokenFor_NamedBackref()
fetchTokenFor_openBraceback to summary
private void fetchTokenFor_openBrace()
fetchTokenFor_repeatback to summary
private void fetchTokenFor_repeat(int lower, int upper)
fetchTokenFor_subexpCallback to summary
private void fetchTokenFor_subexpCall()
fetchTokenFor_uHexback to summary
private void fetchTokenFor_uHex()
fetchTokenFor_xBraceback to summary
private void fetchTokenFor_xBrace()
fetchTokenFor_zeroback to summary
private void fetchTokenFor_zero()
fetchTokenInCCback to summary
protected final TokenType fetchTokenInCC()
fetchTokenInCCFor_andback to summary
private void fetchTokenInCCFor_and()
fetchTokenInCCFor_charTypeback to summary
private void fetchTokenInCCFor_charType(boolean flag, int type)
fetchTokenInCCFor_digitback to summary
private void fetchTokenInCCFor_digit()
fetchTokenInCCFor_pback to summary
private void fetchTokenInCCFor_p()
fetchTokenInCCFor_posixBracketback to summary
private void fetchTokenInCCFor_posixBracket()
fetchTokenInCCFor_uback to summary
private void fetchTokenInCCFor_u()
fetchTokenInCCFor_xback to summary
private void fetchTokenInCCFor_x()
greedyCheckback to summary
private void greedyCheck()
invalidRangeQuantifierback to summary
private int invalidRangeQuantifier(boolean synAllow)
nameEndCodePointback to summary
private int nameEndCodePoint(int start)
possessiveCheckback to summary
private void possessiveCheck()
strExistCheckWithEscback to summary
private boolean strExistCheckWithEsc(int[] s, int n, int bad)
syntaxWarnback to summary
protected final void syntaxWarn(String message, char c)
syntaxWarnback to summary
protected final void syntaxWarn(String message)