Class QuantifierNode
java.lang.Object
org.joni.ast.Node
org.joni.ast.StateNode
org.joni.ast.QuantifierNode
- All Implemented Interfaces:
NodeStatus, NodeType
-
Field Summary
FieldsModifier and TypeFieldDescriptionintbooleanbooleanintstatic final intintintFields inherited from interface NodeStatus
NST_ADDR_FIXED, NST_BY_NUMBER, NST_CALLED, NST_CLEN_FIXED, NST_IN_REPEAT, NST_MARK1, NST_MARK2, NST_MAX_FIXED, NST_MEM_BACKREFED, NST_MIN_FIXED, NST_NAME_REF, NST_NAMED_GROUP, NST_NEST_LEVEL, NST_RECURSION, NST_STOP_BT_SIMPLE_REPEAT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertToString(int flag) protected NodegetChild()getName()intgetType()booleanstatic booleanisRepeatInfinite(int n) protected intvoidprotected voidset(QuantifierNode other) protected voidintsetQuantifier(Node tgt, boolean group, ScanEnvironment env, byte[] bytes, int p, int end) voidtoString(int level) Methods inherited from class StateNode
clearAddrFixed, clearByNumber, clearCAlled, clearCLenFixed, clearInRepeat, clearMark1, clearMark2, clearMaxFixed, clearMemBackrefed, clearMinFixed, clearNamedGroup, clearNameRef, clearNestLevel, clearRecursion, clearStopBtSimpleRepeat, isAddrFixed, isByNumber, isCalled, isCLenFixed, isInRepeat, isMark1, isMark2, isMaxFixed, isMemBackrefed, isMinFixed, isNamedGroup, isNameRef, isNestLevel, isRecursion, isStopBtSimpleRepeat, setAddrFixed, setByNumber, setCalled, setCLenFixed, setInRepeat, setMark1, setMark2, setMaxFixed, setMemBackrefed, setMinFixed, setNamedGroup, setNameRef, setNestLevel, setRecursion, setStopBtSimpleRepeat, stateToStringMethods inherited from class Node
getAddressName, getType2Bit, isAllowedInLookBehind, isInvalidQuantifier, isSimple, pad, swap, toString, verifyTree
-
Field Details
-
target
-
lower
public int lower -
upper
public int upper -
greedy
public boolean greedy -
targetEmptyInfo
public int targetEmptyInfo -
headExact
-
nextHeadExact
-
isRefered
public boolean isRefered -
combExpCheckNum
public int combExpCheckNum -
REPEAT_INFINITE
public static final int REPEAT_INFINITE- See Also:
-
-
Constructor Details
-
QuantifierNode
public QuantifierNode(int lower, int upper, boolean byNumber)
-
-
Method Details
-
getType
-
setChild
-
getChild
-
setTarget
-
convertToString
-
getName
-
toString
-
isAnyCharStar
public boolean isAnyCharStar() -
popularNum
protected int popularNum() -
set
-
reduceNestedQuantifier
-
setQuantifier
public int setQuantifier(Node tgt, boolean group, ScanEnvironment env, byte[] bytes, int p, int end) -
isRepeatInfinite
public static boolean isRepeatInfinite(int n)
-