Package org.joni.ast
Class EncloseNode
java.lang.Object
org.joni.ast.Node
org.joni.ast.StateNode
org.joni.ast.EncloseNode
- All Implemented Interfaces:
EncloseType
,NodeStatus
,NodeType
-
Field Summary
FieldsModifier and TypeFieldDescriptionint
int
int
int
int
int
int
int
Fields inherited from interface org.joni.constants.EncloseType
ALLOWED_IN_LB, ALLOWED_IN_LB_NOT, MEMORY, OPTION, STOP_BACKTRACK
Fields inherited from interface org.joni.constants.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
ConstructorsConstructorDescriptionEncloseNode
(int type) EncloseNode
(int option, boolean isNamed) EncloseNode
(int option, int unused) -
Method Summary
Modifier and TypeMethodDescriptionvoid
clearEncloseStatus
(int flag) void
void
void
protected Node
getChild()
getName()
int
getType()
boolean
isMemory()
boolean
isOption()
boolean
protected void
void
setEncloseStatus
(int flag) void
void
void
void
toString
(int level) Methods inherited from class org.joni.ast.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, stateToString
Methods inherited from class org.joni.ast.Node
getAddressName, getType2Bit, isAllowedInLookBehind, isInvalidQuantifier, isSimple, pad, swap, toString, verifyTree
-
Field Details
-
type
public int type -
regNum
public int regNum -
option
public int option -
target
-
callAddr
public int callAddr -
minLength
public int minLength -
maxLength
public int maxLength -
charLength
public int charLength -
optCount
public int optCount -
containingAnchor
-
-
Constructor Details
-
EncloseNode
public EncloseNode(int type) -
EncloseNode
public EncloseNode(int option, boolean isNamed) -
EncloseNode
public EncloseNode(int option, int unused)
-
-
Method Details
-
getType
public int getType() -
setChild
-
getChild
-
setTarget
-
getName
-
toString
-
typeToString
-
setEncloseStatus
public void setEncloseStatus(int flag) -
clearEncloseStatus
public void clearEncloseStatus(int flag) -
clearMemory
public void clearMemory() -
setMemory
public void setMemory() -
isMemory
public boolean isMemory() -
clearOption
public void clearOption() -
setOption
public void setOption() -
isOption
public boolean isOption() -
clearStopBacktrack
public void clearStopBacktrack() -
setStopBacktrack
public void setStopBacktrack() -
isStopBacktrack
public boolean isStopBacktrack()
-