org.joni
Class Regex

java.lang.Object
  extended by org.joni.Regex
All Implemented Interfaces:
RegexState

public final class Regex
extends Object
implements RegexState


Field Summary
(package private)  int anchor
           
(package private)  int anchorDmax
           
(package private)  int anchorDmin
           
(package private)  int btMemEnd
           
(package private)  int btMemStart
           
(package private)  int captureHistory
           
(package private)  int caseFoldFlag
           
(package private)  int[] code
           
(package private)  int codeLength
           
(package private)  int dMax
           
(package private)  int dMin
           
(package private)  org.jcodings.Encoding enc
           
(package private)  byte[] exact
           
(package private)  int exactEnd
           
(package private)  int exactP
           
 MatcherFactory factory
           
(package private)  int[] intMap
           
(package private)  int[] intMapBackward
           
(package private)  byte[] map
           
(package private)  org.jcodings.util.BytesHash<NameEntry> nameTable
           
(package private)  int numCall
           
(package private)  int numCombExpCheck
           
(package private)  int numMem
           
(package private)  int numNullCheck
           
(package private)  int numRepeat
           
(package private)  int operandLength
           
(package private)  Object[] operands
           
(package private)  int options
           
(package private)  int[] repeatRangeHi
           
(package private)  int[] repeatRangeLo
           
(package private)  SearchAlgorithm searchAlgorithm
           
(package private)  boolean stackNeeded
           
(package private)  int stackPopLevel
           
(package private)  int state
           
(package private)  int subAnchor
           
(package private)  int templateNum
           
(package private)  byte[][] templates
           
(package private)  int thresholdLength
           
(package private)  Object userObject
           
(package private)  int userOptions
           
 WarnCallback warnings
           
 
Fields inherited from interface org.joni.constants.RegexState
COMPILING, MODIFY, NORMAL, SEARCHING
 
Constructor Summary
Regex(byte[] bytes)
           
Regex(byte[] bytes, int p, int end)
           
Regex(byte[] bytes, int p, int end, int option)
           
Regex(byte[] bytes, int p, int end, int option, org.jcodings.Encoding enc)
           
Regex(byte[] bytes, int p, int end, int option, org.jcodings.Encoding enc, Syntax syntax)
           
Regex(byte[] bytes, int p, int end, int option, org.jcodings.Encoding enc, Syntax syntax, WarnCallback warnings)
           
Regex(byte[] bytes, int p, int end, int option, org.jcodings.Encoding enc, WarnCallback warnings)
           
Regex(byte[] bytes, int p, int end, int option, int caseFoldFlag, org.jcodings.Encoding enc, Syntax syntax, WarnCallback warnings)
           
Regex(CharSequence cs)
           
Regex(CharSequence cs, org.jcodings.Encoding enc)
           
Regex(String str)
           
Regex(String str, org.jcodings.Encoding enc)
           
 
Method Summary
(package private)  void clearOptimizeInfo()
           
 String encStringToString(byte[] bytes, int p, int end)
           
 org.jcodings.Encoding getEncoding()
           
 int getOptions()
           
 Object getUserObject()
           
 int getUserOptions()
           
 Matcher matcher(byte[] bytes)
           
 Matcher matcher(byte[] bytes, int p, int end)
           
(package private)  void nameAdd(byte[] name, int nameP, int nameEnd, int backRef, Syntax syntax)
           
 Iterator<NameEntry> namedBackrefIterator()
           
(package private)  NameEntry nameFind(byte[] name, int nameP, int nameEnd)
           
(package private)  String nameTableToString()
           
 int nameToBackrefNumber(byte[] name, int nameP, int nameEnd, Region region)
           
(package private)  NameEntry nameToGroupNumbers(byte[] name, int nameP, int nameEnd)
           
 boolean noNameGroupIsActive(Syntax syntax)
           
 int numberOfCaptureHistories()
           
 int numberOfCaptures()
           
 int numberOfNames()
           
 String optimizeInfoToString()
           
(package private)  void renumberNameTable(int[] map)
           
(package private)  void setExactInfo(OptExactInfo e)
           
(package private)  void setOptimizeMapInfo(OptMapInfo m)
           
(package private)  void setSubAnchor(OptAnchorInfo anc)
           
(package private)  void setupBMSkipMap()
           
 void setUserObject(Object object)
           
 void setUserOptions(int options)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

code

int[] code

codeLength

int codeLength

stackNeeded

boolean stackNeeded

operands

Object[] operands

operandLength

int operandLength

state

int state

numMem

int numMem

numRepeat

int numRepeat

numNullCheck

int numNullCheck

numCombExpCheck

int numCombExpCheck

numCall

int numCall

captureHistory

int captureHistory

btMemStart

int btMemStart

btMemEnd

int btMemEnd

stackPopLevel

int stackPopLevel

repeatRangeLo

int[] repeatRangeLo

repeatRangeHi

int[] repeatRangeHi

warnings

public WarnCallback warnings

factory

public MatcherFactory factory

enc

final org.jcodings.Encoding enc

options

int options

userOptions

int userOptions

userObject

Object userObject

caseFoldFlag

final int caseFoldFlag

nameTable

org.jcodings.util.BytesHash<NameEntry> nameTable

searchAlgorithm

SearchAlgorithm searchAlgorithm

thresholdLength

int thresholdLength

anchor

int anchor

anchorDmin

int anchorDmin

anchorDmax

int anchorDmax

subAnchor

int subAnchor

exact

byte[] exact

exactP

int exactP

exactEnd

int exactEnd

map

byte[] map

intMap

int[] intMap

intMapBackward

int[] intMapBackward

dMin

int dMin

dMax

int dMax

templates

byte[][] templates

templateNum

int templateNum
Constructor Detail

Regex

public Regex(CharSequence cs)

Regex

public Regex(CharSequence cs,
             org.jcodings.Encoding enc)

Regex

public Regex(String str)

Regex

public Regex(String str,
             org.jcodings.Encoding enc)

Regex

public Regex(byte[] bytes)

Regex

public Regex(byte[] bytes,
             int p,
             int end)

Regex

public Regex(byte[] bytes,
             int p,
             int end,
             int option)

Regex

public Regex(byte[] bytes,
             int p,
             int end,
             int option,
             org.jcodings.Encoding enc)

Regex

public Regex(byte[] bytes,
             int p,
             int end,
             int option,
             org.jcodings.Encoding enc,
             Syntax syntax)

Regex

public Regex(byte[] bytes,
             int p,
             int end,
             int option,
             org.jcodings.Encoding enc,
             WarnCallback warnings)

Regex

public Regex(byte[] bytes,
             int p,
             int end,
             int option,
             org.jcodings.Encoding enc,
             Syntax syntax,
             WarnCallback warnings)

Regex

public Regex(byte[] bytes,
             int p,
             int end,
             int option,
             int caseFoldFlag,
             org.jcodings.Encoding enc,
             Syntax syntax,
             WarnCallback warnings)
Method Detail

matcher

public Matcher matcher(byte[] bytes)

matcher

public Matcher matcher(byte[] bytes,
                       int p,
                       int end)

numberOfCaptures

public int numberOfCaptures()

numberOfCaptureHistories

public int numberOfCaptureHistories()

nameTableToString

String nameTableToString()

nameFind

NameEntry nameFind(byte[] name,
                   int nameP,
                   int nameEnd)

renumberNameTable

void renumberNameTable(int[] map)

numberOfNames

public int numberOfNames()

nameAdd

void nameAdd(byte[] name,
             int nameP,
             int nameEnd,
             int backRef,
             Syntax syntax)

nameToGroupNumbers

NameEntry nameToGroupNumbers(byte[] name,
                             int nameP,
                             int nameEnd)

nameToBackrefNumber

public int nameToBackrefNumber(byte[] name,
                               int nameP,
                               int nameEnd,
                               Region region)

namedBackrefIterator

public Iterator<NameEntry> namedBackrefIterator()

noNameGroupIsActive

public boolean noNameGroupIsActive(Syntax syntax)

setupBMSkipMap

void setupBMSkipMap()

setExactInfo

void setExactInfo(OptExactInfo e)

setOptimizeMapInfo

void setOptimizeMapInfo(OptMapInfo m)

setSubAnchor

void setSubAnchor(OptAnchorInfo anc)

clearOptimizeInfo

void clearOptimizeInfo()

encStringToString

public String encStringToString(byte[] bytes,
                                int p,
                                int end)

optimizeInfoToString

public String optimizeInfoToString()

getEncoding

public org.jcodings.Encoding getEncoding()

getOptions

public int getOptions()

setUserOptions

public void setUserOptions(int options)

getUserOptions

public int getUserOptions()

setUserObject

public void setUserObject(Object object)

getUserObject

public Object getUserObject()


Copyright © 2013. All Rights Reserved.