Class CClassNode
java.lang.Object
org.joni.ast.Node
org.joni.ast.CClassNode
- All Implemented Interfaces:
NodeType
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic final classstatic enumNested classes/interfaces inherited from class Node
Node.TopNode -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidvoidaddCodeRange(ScanEnvironment env, int from, int to) voidaddCodeRange(ScanEnvironment env, int from, int to, boolean checkDup) (package private) voidaddCodeRangeToBuf(ScanEnvironment env, int from, int to) (package private) voidaddCodeRangeToBuf(ScanEnvironment env, int from, int to, boolean checkDup) voidaddCType(int ctype, boolean not, boolean asciiRange, ScanEnvironment env, org.jcodings.IntHolder sbOut) voidaddCTypeByRange(int ctype, boolean not, ScanEnvironment env, int sbOut, int[] mbr) voidand(CClassNode other, ScanEnvironment env) voidclear()voidclearNot()voidprivate static intCR_FROM(int[] range, int i) private static intCR_TO(int[] range, int i) getName()booleanisCodeInCC(org.jcodings.Encoding enc, int code) (package private) booleanisCodeInCCLength(int encLength, int code) booleanisEmpty()booleanisNot()intvoidnextStateClass(CClassNode.CCStateArg arg, CClassNode ascCC, ScanEnvironment env) voidnextStateValue(CClassNode.CCStateArg arg, CClassNode ascCc, ScanEnvironment env) voidor(CClassNode other, ScanEnvironment env) voidsetNot()toString(int level) Methods inherited from class Node
getAddressName, getChild, getType, getType2Bit, isSimple, newTop, pad, replaceWith, setChild, toString
-
Field Details
-
FLAG_NCCLASS_NOT
private static final int FLAG_NCCLASS_NOT- See Also:
-
flags
private int flags -
bs
-
mbuf
-
-
Constructor Details
-
CClassNode
public CClassNode()
-
-
Method Details
-
clear
public void clear() -
getName
-
toString
-
flagsToString
-
isEmpty
public boolean isEmpty() -
addCodeRangeToBuf
-
addCodeRangeToBuf
-
addCodeRange
-
addCodeRange
-
addAllMultiByteRange
-
clearNotFlag
-
isOneChar
public int isOneChar() -
and
-
or
-
addCTypeByRange
-
CR_FROM
private static int CR_FROM(int[] range, int i) -
CR_TO
private static int CR_TO(int[] range, int i) -
addCType
public void addCType(int ctype, boolean not, boolean asciiRange, ScanEnvironment env, org.jcodings.IntHolder sbOut) -
nextStateClass
-
nextStateValue
-
isCodeInCCLength
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()
-