Top Fields Constructors Methods
org.joni

pack-priv final Class ArrayCompiler

extends Compiler
Class Inheritance
Static Imports
org.joni.BitStatus.bsAt, .Option.isDynamic, .Option.isIgnoreCase, .Option.isMultiline, org.joni.ast.QuantifierNode.isRepeatInfinite

Field Summary

Modifier and TypeField and Description
private int[]
private int
private static final int
private static final int
private int
private byte[][]
Inherited from org.joni.Compiler:
analyserencregex

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
private void
addAbsAddr(int addr)

private void
addBytes(byte[] bytes, int p, int length)

protected final void
addCompileString(byte[] bytes, int p, int mbLength, int byteLength, boolean ignoreCase)

Implements abstract org.joni.Compiler.addCompileString.

private int
addCompileStringlength(byte[] bytes, int p, int mbLength, int byteLength, boolean ignoreCase)

private void
addInt(int i)

private void
addInts(int[] ints, int length)

private void
addLength(int length)

private void
addMemNum(int num)

private void
private void
addOpcode(int opcode)

private void
addOpcodeOption(int opcode, int option)

private void
addOpcodeRelAddr(int opcode, int addr)

private void
addOption(int option)

private void
addRelAddr(int addr)

private void
private void
addTemplate(byte[] bytes)

private static boolean
cknOn(int ckn)

protected void
protected void
protected void
protected void
protected void
protected void
private int
protected void
protected void
protected void
private int
private int
private int
private int
private int
private int
private int
private int
protected void
protected void
private void
compileRangeRepeatNode(QuantifierNode qn, int targetLen, int emptyInfo)

private void
compileTreeEmptyCheck(Node node, int emptyInfo)

private void
ensure(int size)

private void
entryRepeatRange(int id, int lower, int upper)

protected final void
finish()

Implements abstract org.joni.Compiler.finish.

private boolean
private boolean
opTemplated(int op)

protected final void
prepare()

Implements abstract org.joni.Compiler.prepare.

private int
selectStrOpcode(int mbLength, int byteLength, boolean ignoreCase)

pack-priv void
setInt(int i, int offset)

Inherited from org.joni.Compiler:
compilecompileTreecompileTreeNTimesnewInternalExceptionnewSyntaxException

Field Detail

codeback to summary
private int[] code
codeLengthback to summary
private int codeLength
QUANTIFIER_EXPAND_LIMIT_SIZEback to summary
private static final int QUANTIFIER_EXPAND_LIMIT_SIZE
REPEAT_RANGE_ALLOCback to summary
private static final int REPEAT_RANGE_ALLOC
templateNumback to summary
private int templateNum
templatesback to summary
private byte[][] templates

Constructor Detail

ArrayCompilerback to summary
pack-priv ArrayCompiler(Analyser analyser)

Method Detail

addAbsAddrback to summary
private void addAbsAddr(int addr)
addBytesback to summary
private void addBytes(byte[] bytes, int p, int length)
addCompileStringback to summary
protected final void addCompileString(byte[] bytes, int p, int mbLength, int byteLength, boolean ignoreCase)

Implements abstract org.joni.Compiler.addCompileString.

Annotations
@Override
addCompileStringlengthback to summary
private int addCompileStringlength(byte[] bytes, int p, int mbLength, int byteLength, boolean ignoreCase)
addIntback to summary
private void addInt(int i)
addIntsback to summary
private void addInts(int[] ints, int length)
addLengthback to summary
private void addLength(int length)
addMemNumback to summary
private void addMemNum(int num)
addMultiByteCClassback to summary
private void addMultiByteCClass(CodeRangeBuffer mbuf)
addOpcodeback to summary
private void addOpcode(int opcode)
addOpcodeOptionback to summary
private void addOpcodeOption(int opcode, int option)
addOpcodeRelAddrback to summary
private void addOpcodeRelAddr(int opcode, int addr)
addOptionback to summary
private void addOption(int option)
addRelAddrback to summary
private void addRelAddr(int addr)
addStateCheckNumback to summary
private void addStateCheckNum(int num)
addTemplateback to summary
private void addTemplate(byte[] bytes)
cknOnback to summary
private static boolean cknOn(int ckn)
compileAltNodeback to summary
protected void compileAltNode(ListNode node)

Implements abstract org.joni.Compiler.compileAltNode.

Annotations
@Override
compileAnchorNodeback to summary
protected void compileAnchorNode(AnchorNode node)

Implements abstract org.joni.Compiler.compileAnchorNode.

Annotations
@Override
compileAnyCharNodeback to summary
protected void compileAnyCharNode()

Implements abstract org.joni.Compiler.compileAnyCharNode.

Annotations
@Override
compileBackrefNodeback to summary
protected void compileBackrefNode(BackRefNode node)

Implements abstract org.joni.Compiler.compileBackrefNode.

Annotations
@Override
compileCallNodeback to summary
protected void compileCallNode(CallNode node)

Implements abstract org.joni.Compiler.compileCallNode.

Annotations
@Override
compileCClassNodeback to summary
protected void compileCClassNode(CClassNode cc)

Implements abstract org.joni.Compiler.compileCClassNode.

Annotations
@Override
compileCECLengthQuantifierNodeback to summary
private int compileCECLengthQuantifierNode(QuantifierNode qn)
compileCECQuantifierNodeback to summary
protected void compileCECQuantifierNode(QuantifierNode qn)

Implements abstract org.joni.Compiler.compileCECQuantifierNode.

Annotations
@Override
compileCTypeNodeback to summary
protected void compileCTypeNode(CTypeNode node)

Implements abstract org.joni.Compiler.compileCTypeNode.

Annotations
@Override
compileEncloseNodeback to summary
protected void compileEncloseNode(EncloseNode node)

Implements abstract org.joni.Compiler.compileEncloseNode.

Annotations
@Override
compileLengthAnchorNodeback to summary
private int compileLengthAnchorNode(AnchorNode node)
compileLengthCClassNodeback to summary
private int compileLengthCClassNode(CClassNode cc)
compileLengthEncloseNodeback to summary
private int compileLengthEncloseNode(EncloseNode node)
compileLengthOptionNodeback to summary
private int compileLengthOptionNode(EncloseNode node)
compileLengthStringNodeback to summary
private int compileLengthStringNode(Node node)
compileLengthStringRawNodeback to summary
private int compileLengthStringRawNode(StringNode sn)
compileLengthTreeback to summary
private int compileLengthTree(Node node)
compileNonCECLengthQuantifierNodeback to summary
private int compileNonCECLengthQuantifierNode(QuantifierNode qn)
compileNonCECQuantifierNodeback to summary
protected void compileNonCECQuantifierNode(QuantifierNode qn)

Implements abstract org.joni.Compiler.compileNonCECQuantifierNode.

Annotations
@Override
compileOptionNodeback to summary
protected void compileOptionNode(EncloseNode node)

Implements abstract org.joni.Compiler.compileOptionNode.

Annotations
@Override
compileRangeRepeatNodeback to summary
private void compileRangeRepeatNode(QuantifierNode qn, int targetLen, int emptyInfo)
compileTreeEmptyCheckback to summary
private void compileTreeEmptyCheck(Node node, int emptyInfo)
ensureback to summary
private void ensure(int size)
entryRepeatRangeback to summary
private void entryRepeatRange(int id, int lower, int upper)
finishback to summary
protected final void finish()

Implements abstract org.joni.Compiler.finish.

Annotations
@Override
isNeedStrLenOpExactback to summary
private boolean isNeedStrLenOpExact(int op)
opTemplatedback to summary
private boolean opTemplated(int op)
prepareback to summary
protected final void prepare()

Implements abstract org.joni.Compiler.prepare.

Annotations
@Override
selectStrOpcodeback to summary
private int selectStrOpcode(int mbLength, int byteLength, boolean ignoreCase)
setIntback to summary
pack-priv void setInt(int i, int offset)