- java.lang.Object
-
- org.joni.ast.Node
-
- org.joni.ast.StateNode
-
- org.joni.ast.EncloseNode
-
- All Implemented Interfaces:
EncloseType,NodeStatus,NodeType
public final class EncloseNode extends StateNode implements EncloseType
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.joni.ast.Node
Node.TopNode
-
-
Field Summary
Fields Modifier and Type Field Description intcallAddrintcharLengthNodecontainingAnchorintmaxLengthintminLengthintoptCountintoptionintregNumNodetargetinttype-
Fields inherited from interface org.joni.constants.internal.EncloseType
ABSENT, ALLOWED_IN_LB, ALLOWED_IN_LB_NOT, CONDITION, MEMORY, OPTION, STOP_BACKTRACK
-
Fields inherited from interface org.joni.constants.internal.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 Constructor Description EncloseNode(int type)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearEncloseStatus(int flag)protected NodegetChild()java.lang.StringgetName()booleanisAbsent()booleanisCondition()booleanisMemory()booleanisOption()booleanisStopBacktrack()static EncloseNodenewMemory(int option, boolean isNamed)static EncloseNodenewOption(int option)protected voidsetChild(Node child)voidsetEncloseStatus(int flag)voidsetTarget(Node tgt)java.lang.StringtoString(int level)java.lang.StringtypeToString()-
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, getType, getType2Bit, isSimple, newTop, pad, replaceWith, toString
-
-
-
-
Field Detail
-
type
public final int type
-
regNum
public int regNum
-
option
public int option
-
target
public Node target
-
callAddr
public int callAddr
-
minLength
public int minLength
-
maxLength
public int maxLength
-
charLength
public int charLength
-
optCount
public int optCount
-
containingAnchor
public Node containingAnchor
-
-
Method Detail
-
newMemory
public static EncloseNode newMemory(int option, boolean isNamed)
-
newOption
public static EncloseNode newOption(int option)
-
setTarget
public void setTarget(Node tgt)
-
typeToString
public java.lang.String typeToString()
-
setEncloseStatus
public void setEncloseStatus(int flag)
-
clearEncloseStatus
public void clearEncloseStatus(int flag)
-
isMemory
public boolean isMemory()
-
isOption
public boolean isOption()
-
isCondition
public boolean isCondition()
-
isStopBacktrack
public boolean isStopBacktrack()
-
isAbsent
public boolean isAbsent()
-
-