Top Fields Constructors Methods
org.joni

pack-priv final Class Analyser

extends Parser
Class Inheritance
Static Imports
org.joni.BitStatus.bsAll, .BitStatus.bsAt, .BitStatus.bsClear, .BitStatus.bsOnAt, .BitStatus.bsOnAtSimple, .Option.isCaptureGroup, .Option.isFindCondition, .Option.isIgnoreCase, .Option.isMultiline, org.joni.ast.ListNode.newAlt, .ListNode.newList, .QuantifierNode.isRepeatInfinite

Field Summary

Modifier and TypeField and Description
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
Inherited from org.joni.Parser:
returnCode

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
private boolean
checkTypeTree(Node node, int typeMask, int encloseMask, int anchorMask)

protected final void
protected final Node
private Node
private String
encStringToString(byte[] bytes, int p, int end)

private Node
expandCaseFoldMakeRemString(byte[] bytes, int p, int end)

private Node
private boolean
expandCaseFoldStringAlt(int itemNum, CaseFoldCodeItem[] items, byte[] bytes, int p, int slen, int end, ObjPtr<Node> node)

protected final int
private int
getCharLengthTree(Node node, int level)

private Node
getHeadValueNode(Node node, boolean exact)

private int
private int
private boolean
isCaseFoldVariableLength(int itemNum, CaseFoldCodeItem[] items, int slen)

private boolean
private void
nextSetup(Node node, Node nextNode)

private Node
noNameDisableMap(Node node, int[] map, Ptr counter)

private void
noNameDisableMapFor_anchor(Node node, int[] map, Ptr counter)

private Node
noNameDisableMapFor_enclose(Node node, int[] map, Ptr counter)

private void
noNameDisableMapFor_listAlt(Node node, int[] map, Ptr counter)

private void
noNameDisableMapFor_quantifier(Node node, int[] map, Ptr counter)

protected final void
private void
private int
private void
renumberByMap(Node node, int[] map)

private void
protected final void
protected final int
setupCombExpCheck(Node node, int state)

private Node
protected final void
protected final Node
setupTree(Node node, int state)

private int
subexpInfRecursiveCheck(Node node, boolean head)

protected final int
private int
protected final int
private void
private void
private void
Inherited from org.joni.Parser:
parseRegexp

Field Detail

CEC_CONT_BIG_REPEATback to summary
private static final int CEC_CONT_BIG_REPEAT
CEC_IN_FINITE_REPEATback to summary
private static final int CEC_IN_FINITE_REPEAT
CEC_IN_INFINITE_REPEATback to summary
private static final int CEC_IN_INFINITE_REPEAT
CEC_INFINITE_NUMback to summary
private static final int CEC_INFINITE_NUM
CEC_THRES_NUM_BIG_REPEATback to summary
private static final int CEC_THRES_NUM_BIG_REPEAT
EXPAND_STRING_MAX_LENGTHback to summary
private static final int EXPAND_STRING_MAX_LENGTH
FOUND_CALLED_NODEback to summary
private static final int FOUND_CALLED_NODE
GET_CHAR_LEN_TOP_ALT_VARLENback to summary
private static final int GET_CHAR_LEN_TOP_ALT_VARLEN
GET_CHAR_LEN_VARLENback to summary
private static final int GET_CHAR_LEN_VARLEN
IN_ALTback to summary
private static final int IN_ALT
IN_CALLback to summary
private static final int IN_CALL
IN_NOTback to summary
private static final int IN_NOT
IN_RECCALLback to summary
private static final int IN_RECCALL
IN_REPEATback to summary
private static final int IN_REPEAT
IN_VAR_REPEATback to summary
private static final int IN_VAR_REPEAT
MAX_NODE_OPT_INFO_REF_COUNTback to summary
private static final int MAX_NODE_OPT_INFO_REF_COUNT
RECURSION_EXISTback to summary
private static final int RECURSION_EXIST
RECURSION_INFINITEback to summary
private static final int RECURSION_INFINITE
THRESHOLD_CASE_FOLD_ALT_FOR_EXPANSIONback to summary
private static final int THRESHOLD_CASE_FOLD_ALT_FOR_EXPANSION

Constructor Detail

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

Method Detail

checkTypeTreeback to summary
private boolean checkTypeTree(Node node, int typeMask, int encloseMask, int anchorMask)
compileback to summary
protected final void compile()
disableNoNameGroupCaptureback to summary
protected final Node disableNoNameGroupCapture(Node root)
divideLookBehindAlternativesback to summary
private Node divideLookBehindAlternatives(Node node)
encStringToStringback to summary
private String encStringToString(byte[] bytes, int p, int end)
expandCaseFoldMakeRemStringback to summary
private Node expandCaseFoldMakeRemString(byte[] bytes, int p, int end)
expandCaseFoldStringback to summary
private Node expandCaseFoldString(Node node)
expandCaseFoldStringAltback to summary
private boolean expandCaseFoldStringAlt(int itemNum, CaseFoldCodeItem[] items, byte[] bytes, int p, int slen, int end, ObjPtr<Node> node)
getCharLengthTreeback to summary
protected final int getCharLengthTree(Node node)
getCharLengthTreeback to summary
private int getCharLengthTree(Node node, int level)
getHeadValueNodeback to summary
private Node getHeadValueNode(Node node, boolean exact)
getMaxMatchLengthback to summary
private int getMaxMatchLength(Node node)
getMinMatchLengthback to summary
private int getMinMatchLength(Node node)
isCaseFoldVariableLengthback to summary
private boolean isCaseFoldVariableLength(int itemNum, CaseFoldCodeItem[] items, int slen)
isNotIncludedback to summary
private boolean isNotIncluded(Node x, Node y)
nextSetupback to summary
private void nextSetup(Node node, Node nextNode)
noNameDisableMapback to summary
private Node noNameDisableMap(Node node, int[] map, Ptr counter)
noNameDisableMapFor_anchorback to summary
private void noNameDisableMapFor_anchor(Node node, int[] map, Ptr counter)
noNameDisableMapFor_encloseback to summary
private Node noNameDisableMapFor_enclose(Node node, int[] map, Ptr counter)
noNameDisableMapFor_listAltback to summary
private void noNameDisableMapFor_listAlt(Node node, int[] map, Ptr counter)
noNameDisableMapFor_quantifierback to summary
private void noNameDisableMapFor_quantifier(Node node, int[] map, Ptr counter)
numberedRefCheckback to summary
protected final void numberedRefCheck(Node node)
optimizeNodeLeftback to summary
private void optimizeNodeLeft(Node node, NodeOptInfo opt, OptEnvironment oenv)
quantifiersMemoryInfoback to summary
private int quantifiersMemoryInfo(Node node)
renumberByMapback to summary
private void renumberByMap(Node node, int[] map)
setCallAttrback to summary
private void setCallAttr(CallNode cn)
setOptimizedInfoFromTreeback to summary
protected final void setOptimizedInfoFromTree(Node node)
setupCombExpCheckback to summary
protected final int setupCombExpCheck(Node node, int state)
setupLookBehindback to summary
private Node setupLookBehind(AnchorNode node)
setupSubExpCallback to summary
protected final void setupSubExpCall(Node node)
setupTreeback to summary
protected final Node setupTree(Node node, int state)
subexpInfRecursiveCheckback to summary
private int subexpInfRecursiveCheck(Node node, boolean head)
subexpInfRecursiveCheckTravback to summary
protected final int subexpInfRecursiveCheckTrav(Node node)
subexpRecursiveCheckback to summary
private int subexpRecursiveCheck(Node node)
subexpRecursiveCheckTravback to summary
protected final int subexpRecursiveCheckTrav(Node node)
updateStringNodeCaseFoldback to summary
private void updateStringNodeCaseFold(Node node)
updateStringNodeCaseFoldMultiByteback to summary
private void updateStringNodeCaseFoldMultiByte(StringNode sn)
updateStringNodeCaseFoldSingleByteback to summary
private void updateStringNodeCaseFoldSingleByte(StringNode sn, byte[] toLower)