Package org.joni

Class Analyser

All Implemented Interfaces:
org.jcodings.exception.ErrorMessages, ErrorMessages

final class Analyser extends Parser
  • Field Details

  • Constructor Details

    • Analyser

      protected Analyser(Regex regex, Syntax syntax, byte[] bytes, int p, int end, WarnCallback warnings)
  • Method Details

    • compile

      protected final void compile()
    • encStringToString

      private String encStringToString(byte[] bytes, int p, int end)
    • noNameDisableMapFor_listAlt

      private void noNameDisableMapFor_listAlt(Node node, int[] map, org.jcodings.Ptr counter)
    • noNameDisableMapFor_quantifier

      private void noNameDisableMapFor_quantifier(Node node, int[] map, org.jcodings.Ptr counter)
    • noNameDisableMapFor_enclose

      private Node noNameDisableMapFor_enclose(Node node, int[] map, org.jcodings.Ptr counter)
    • noNameDisableMapFor_anchor

      private void noNameDisableMapFor_anchor(Node node, int[] map, org.jcodings.Ptr counter)
    • noNameDisableMap

      private Node noNameDisableMap(Node node, int[] map, org.jcodings.Ptr counter)
    • renumberByMap

      private void renumberByMap(Node node, int[] map)
    • numberedRefCheck

      protected final void numberedRefCheck(Node node)
    • disableNoNameGroupCapture

      protected final Node disableNoNameGroupCapture(Node root)
    • quantifiersMemoryInfo

      private int quantifiersMemoryInfo(Node node)
    • getMinMatchLength

      private int getMinMatchLength(Node node)
    • getMaxMatchLength

      private int getMaxMatchLength(Node node)
    • getCharLengthTree

      protected final int getCharLengthTree(Node node)
    • getCharLengthTree

      private int getCharLengthTree(Node node, int level)
    • isNotIncluded

      private boolean isNotIncluded(Node x, Node y)
    • getHeadValueNode

      private Node getHeadValueNode(Node node, boolean exact)
    • checkTypeTree

      private boolean checkTypeTree(Node node, int typeMask, int encloseMask, int anchorMask)
    • subexpInfRecursiveCheck

      private int subexpInfRecursiveCheck(Node node, boolean head)
    • subexpInfRecursiveCheckTrav

      protected final int subexpInfRecursiveCheckTrav(Node node)
    • subexpRecursiveCheck

      private int subexpRecursiveCheck(Node node)
    • subexpRecursiveCheckTrav

      protected final int subexpRecursiveCheckTrav(Node node)
    • setCallAttr

      private void setCallAttr(CallNode cn)
    • setupSubExpCall

      protected final void setupSubExpCall(Node node)
    • divideLookBehindAlternatives

      private Node divideLookBehindAlternatives(Node node)
    • setupLookBehind

      private Node setupLookBehind(AnchorNode node)
    • nextSetup

      private void nextSetup(Node node, Node nextNode)
    • updateStringNodeCaseFoldSingleByte

      private void updateStringNodeCaseFoldSingleByte(StringNode sn, byte[] toLower)
    • updateStringNodeCaseFoldMultiByte

      private void updateStringNodeCaseFoldMultiByte(StringNode sn)
    • updateStringNodeCaseFold

      private void updateStringNodeCaseFold(Node node)
    • expandCaseFoldMakeRemString

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

      private boolean isCaseFoldVariableLength(int itemNum, org.jcodings.CaseFoldCodeItem[] items, int slen)
    • expandCaseFoldStringAlt

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

      private Node expandCaseFoldString(Node node)
    • setupCombExpCheck

      protected final int setupCombExpCheck(Node node, int state)
    • setupTree

      protected final Node setupTree(Node node, int state)
    • optimizeNodeLeft

      private void optimizeNodeLeft(Node node, NodeOptInfo opt, OptEnvironment oenv)
    • setOptimizedInfoFromTree

      protected final void setOptimizedInfoFromTree(Node node)