Package org.joni.ast
Class CClassNode
java.lang.Object
org.joni.ast.Node
org.joni.ast.CClassNode
- All Implemented Interfaces:
NodeType
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal BitSet
private int
private org.jcodings.Encoding
private static final int
private static final int
(package private) int
-
Constructor Summary
ConstructorsConstructorDescriptionCClassNode
(boolean not, int sbOut, int[] ranges) CClassNode
(int ctype, org.jcodings.Encoding enc, boolean not, int sbOut, int[] ranges) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAllMultiByteRange
(org.jcodings.Encoding enc) void
addCodeRange
(ScanEnvironment env, int from, int to) void
addCodeRangeToBuf
(int from, int to) void
addCType
(int ctype, boolean not, ScanEnvironment env, org.jcodings.IntHolder sbOut) void
addCTypeByRange
(int ctype, boolean not, org.jcodings.Encoding enc, int sbOut, int[] mbr) void
and
(CClassNode other, org.jcodings.Encoding enc) void
clear()
void
clearNot()
void
clearNotFlag
(org.jcodings.Encoding enc) void
boolean
getName()
int
getType()
int
hashCode()
boolean
isCodeInCC
(org.jcodings.Encoding enc, int code) boolean
isCodeInCCLength
(int encLength, int code) boolean
isEmpty()
boolean
isNot()
boolean
isShare()
void
void
void
or
(CClassNode other, org.jcodings.Encoding enc) void
setNot()
void
setShare()
private void
setupBuffer
(int[] ranges) toString
(int level) Methods inherited from class org.joni.ast.Node
getAddressName, getChild, getType2Bit, isAllowedInLookBehind, isInvalidQuantifier, isSimple, pad, setChild, swap, toString, verifyTree
-
Field Details
-
FLAG_NCCLASS_NOT
private static final int FLAG_NCCLASS_NOT- See Also:
-
FLAG_NCCLASS_SHARE
private static final int FLAG_NCCLASS_SHARE- See Also:
-
flags
int flags -
bs
-
mbuf
-
ctype
private int ctype -
enc
private org.jcodings.Encoding enc
-
-
Constructor Details
-
CClassNode
public CClassNode() -
CClassNode
public CClassNode(int ctype, org.jcodings.Encoding enc, boolean not, int sbOut, int[] ranges) -
CClassNode
public CClassNode(boolean not, int sbOut, int[] ranges)
-
-
Method Details
-
clear
public void clear() -
getType
public int getType() -
getName
-
equals
-
hashCode
public int hashCode() -
toString
-
flagsToString
-
setupBuffer
private void setupBuffer(int[] ranges) -
isEmpty
public boolean isEmpty() -
addCodeRangeToBuf
public void addCodeRangeToBuf(int from, int to) -
addCodeRange
-
addAllMultiByteRange
public void addAllMultiByteRange(org.jcodings.Encoding enc) -
clearNotFlag
public void clearNotFlag(org.jcodings.Encoding enc) -
and
-
or
-
addCTypeByRange
public void addCTypeByRange(int ctype, boolean not, org.jcodings.Encoding enc, int sbOut, int[] mbr) -
addCType
-
nextStateClass
-
nextStateValue
-
isCodeInCCLength
public boolean isCodeInCCLength(int encLength, int code) -
isCodeInCC
public boolean isCodeInCC(org.jcodings.Encoding enc, int code) -
setNot
public void setNot() -
clearNot
public void clearNot() -
isNot
public boolean isNot()
-