org.joni
Class Matcher

java.lang.Object
  extended by org.jcodings.IntHolder
      extended by org.joni.Matcher
Direct Known Subclasses:
NativeMachine

public abstract class Matcher
extends org.jcodings.IntHolder


Field Summary
protected  byte[] bytes
           
protected  org.jcodings.Encoding enc
           
protected  int end
           
protected  int msaBegin
           
protected  int msaBestLen
           
protected  int msaBestS
           
protected  int msaEnd
           
protected  int msaOptions
           
protected  Region msaRegion
           
protected  int msaStart
           
protected  Regex regex
           
protected  int str
           
 
Fields inherited from class org.jcodings.IntHolder
value
 
Constructor Summary
Matcher(Regex regex, byte[] bytes)
           
Matcher(Regex regex, byte[] bytes, int p, int end)
           
 
Method Summary
 int getBegin()
           
 Region getEagerRegion()
           
 int getEnd()
           
 Region getRegion()
           
 int match(int at, int range, int option)
           
protected abstract  int matchAt(int range, int sstart, int sprev)
           
protected  void msaInit(int option, int start)
           
 int search(int start, int range, int option)
           
protected abstract  void stateCheckBuffClear()
           
protected abstract  void stateCheckBuffInit(int strLength, int offset, int stateNum)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

regex

protected final Regex regex

enc

protected final org.jcodings.Encoding enc

bytes

protected final byte[] bytes

str

protected final int str

end

protected final int end

msaStart

protected int msaStart

msaOptions

protected int msaOptions

msaRegion

protected final Region msaRegion

msaBestLen

protected int msaBestLen

msaBestS

protected int msaBestS

msaBegin

protected int msaBegin

msaEnd

protected int msaEnd
Constructor Detail

Matcher

public Matcher(Regex regex,
               byte[] bytes)

Matcher

public Matcher(Regex regex,
               byte[] bytes,
               int p,
               int end)
Method Detail

matchAt

protected abstract int matchAt(int range,
                               int sstart,
                               int sprev)

stateCheckBuffInit

protected abstract void stateCheckBuffInit(int strLength,
                                           int offset,
                                           int stateNum)

stateCheckBuffClear

protected abstract void stateCheckBuffClear()

getRegion

public final Region getRegion()

getEagerRegion

public final Region getEagerRegion()

getBegin

public final int getBegin()

getEnd

public final int getEnd()

msaInit

protected final void msaInit(int option,
                             int start)

match

public final int match(int at,
                       int range,
                       int option)

search

public final int search(int start,
                        int range,
                        int option)


Copyright © 2012. All Rights Reserved.