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 BitSetprivate intprivate org.jcodings.Encodingprivate static final intprivate 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 TypeMethodDescriptionvoidaddAllMultiByteRange(org.jcodings.Encoding enc) voidaddCodeRange(ScanEnvironment env, int from, int to) voidaddCodeRangeToBuf(int from, int to) voidaddCType(int ctype, boolean not, ScanEnvironment env, org.jcodings.IntHolder sbOut) voidaddCTypeByRange(int ctype, boolean not, org.jcodings.Encoding enc, int sbOut, int[] mbr) voidand(CClassNode other, org.jcodings.Encoding enc) voidclear()voidclearNot()voidclearNotFlag(org.jcodings.Encoding enc) voidbooleangetName()intgetType()inthashCode()booleanisCodeInCC(org.jcodings.Encoding enc, int code) booleanisCodeInCCLength(int encLength, int code) booleanisEmpty()booleanisNot()booleanisShare()voidvoidvoidor(CClassNode other, org.jcodings.Encoding enc) voidsetNot()voidsetShare()private voidsetupBuffer(int[] ranges) toString(int level) Methods inherited from class 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
-
getName
-
equals
-
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()
-