[jruby-joni] 73/194: more debug info down
Hideki Yamane
henrich at moszumanska.debian.org
Thu Feb 1 12:04:28 UTC 2018
This is an automated email from the git hooks/post-receive script.
henrich pushed a commit to branch debian/sid
in repository jruby-joni.
commit acccbc9a2b793682ec14d5408227e62622041df0
Author: Marcin Mielzynski <lopx at gazeta.pl>
Date: Sat Dec 30 20:48:09 2017 +0100
more debug info down
---
src/org/joni/ast/StateNode.java | 39 +++++++++++++++++++--------------------
1 file changed, 19 insertions(+), 20 deletions(-)
diff --git a/src/org/joni/ast/StateNode.java b/src/org/joni/ast/StateNode.java
index 299b319..f04a302 100644
--- a/src/org/joni/ast/StateNode.java
+++ b/src/org/joni/ast/StateNode.java
@@ -29,26 +29,6 @@ public abstract class StateNode extends Node implements NodeStatus {
return "\n state: " + stateToString();
}
- public String stateToString() {
- StringBuilder states = new StringBuilder();
- if (isMinFixed()) states.append("MIN_FIXED ");
- if (isMaxFixed()) states.append("MAX_FIXED ");
- if (isMark1()) states.append("MARK1 ");
- if (isMark2()) states.append("MARK2 ");
- if (isMemBackrefed()) states.append("MEM_BACKREFED ");
- if (isStopBtSimpleRepeat()) states.append("STOP_BT_SIMPLE_REPEAT ");
- if (isRecursion()) states.append("RECURSION ");
- if (isCalled()) states.append("CALLED ");
- if (isAddrFixed()) states.append("ADDR_FIXED ");
- if (isNamedGroup()) states.append("NAMED_GROUP ");
- if (isNameRef()) states.append("NAME_REF ");
- if (isInRepeat()) states.append("IN_REPEAT ");
- if (isNestLevel()) states.append("NEST_LEVEL ");
- if (isByNumber()) states.append("BY_NUMBER ");
-
- return states.toString();
- }
-
public boolean isMinFixed() {
return (state & NST_MIN_FIXED) != 0;
}
@@ -229,4 +209,23 @@ public abstract class StateNode extends Node implements NodeStatus {
state &= ~NST_BY_NUMBER;
}
+ public String stateToString() {
+ StringBuilder states = new StringBuilder();
+ if (isMinFixed()) states.append("MIN_FIXED ");
+ if (isMaxFixed()) states.append("MAX_FIXED ");
+ if (isMark1()) states.append("MARK1 ");
+ if (isMark2()) states.append("MARK2 ");
+ if (isMemBackrefed()) states.append("MEM_BACKREFED ");
+ if (isStopBtSimpleRepeat()) states.append("STOP_BT_SIMPLE_REPEAT ");
+ if (isRecursion()) states.append("RECURSION ");
+ if (isCalled()) states.append("CALLED ");
+ if (isAddrFixed()) states.append("ADDR_FIXED ");
+ if (isNamedGroup()) states.append("NAMED_GROUP ");
+ if (isNameRef()) states.append("NAME_REF ");
+ if (isInRepeat()) states.append("IN_REPEAT ");
+ if (isNestLevel()) states.append("NEST_LEVEL ");
+ if (isByNumber()) states.append("BY_NUMBER ");
+
+ return states.toString();
+ }
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/jruby-joni.git
More information about the pkg-java-commits
mailing list