SAFE Logo
CodeMatch Detailed Report
Version: 5.6.0 | Date: 06/18/12 | Time: 19:09:04

SCORE

SETTINGS
Compare file 1: C:\Users\Evan\Desktop\Java2SE5.0\src\com\sun\jmx\snmp\IPAcl\JJTParserState.java
To file 2: C:\Users\Evan\Desktop\Android2.2Froyo\org\apache\james\mime4j\field\address\parser\JJTAddressListParserState.java
Links to results: Matching Statements
Matching Comments and Strings
Matching Instruction Sequences
Matching Identifiers
Partially Matching Identifiers
Score
RESULTS
Matching Statements
File1 Line# File2 Line# Statement
136private java.util.Stack nodes
147private java.util.Stack marks
169private int sp
1710private int mk
1811private boolean node_created
2114nodes = new java.util.Stack()
2215marks = new java.util.Stack()
23
39
16
32
sp = 0
24
40
17
33
mk = 0
3023boolean nodeCreated() {
3124return node_created
3629void reset() {
3730nodes.removeAllElements()
3831marks.removeAllElements()
4538Node rootNode() {
4639return (Node)nodes.elementAt(0)
5043void pushNode(Node n) {
5144nodes.push(n)
5245++sp
5750Node popNode() {
5851if (--sp < mk) {
59
80
96
116
126
52
73
89
109
119
mk = ((Integer)marks.pop()).intValue()
6154return (Node)nodes.pop()
6558Node peekNode() {
6659return (Node)nodes.peek()
7164int nodeArity() {
7265return sp - mk
7669void clearNodeScope(Node n) {
7770while (sp > mk) {
7871popNode()
8477void openNodeScope(Node n) {
8578marks.push(new Integer(mk))
8679mk = sp
8780n.jjtOpen()
9588void closeNodeScope(Node n, int num) {
9790while (num-- > 0) {
98
118
91
111
Node c = popNode()
99
119
92
112
c.jjtSetParent(n)
10093n.jjtAddChild(c, num)
102
122
95
115
n.jjtClose()
103
123
96
116
pushNode(n)
104
124
97
117
node_created = true
113106void closeNodeScope(Node n, boolean condition) {
114107if (condition) {
115108int a = nodeArity()
117110while (a-- > 0) {
120113n.jjtAddChild(c, a)
127120node_created = false

to top

Matching Comments and Strings
File1 Line# File2 Line# Comment/String
169number of nodes on stack
1710current mark
2720Determines whether the current node was actually closed and
2821pushed. This should only be called in the final user action of a
2922node scope.
3427Call this to reinitialize the node stack. It is called
3528automatically by the parser's ReInit() method.
4336Returns the root node of the AST. It only makes sense to call
4437this after a successful parse.
4942Pushes a node on to the stack.
5548Returns the node on the top of the stack, and remove it from the
5649stack.
6457Returns the node currently on the top of the stack.
6962Returns the number of children on the stack in the current node
7063scope.
9184A definite node is constructed from a specified number of
9285children. That number of nodes are popped from the stack and
9386made the children of the definite node. Then the definite node
9487is pushed on to the stack.
108101A conditional node is constructed if its condition is true. All
109102the nodes that have been pushed since the node was opened are
110103made children of the the conditional node, which is then pushed
111104on to the stack. If the condition is false the node is not
112105constructed and they are left on the stack.

to top

Matching Instruction Sequences
File1 Line# File2 Line# Number of matching instructions
21 14 55

to top

Matching Identifiers
clearNodeScope closeNodeScope condition elementAt intValue java jjtAddChild jjtClose
jjtOpen jjtSetParent marks mk Node node_created nodeArity nodeCreated
nodes num openNodeScope peek peekNode pop popNode push
pushNode removeAllElements reset rootNode sp Stack util

to top

Partially Matching Identifiers
File1 Identifiers
IPAcl JJTParserState
File2 Identifiers
apache JJTAddressListParserState
to the top
SCORE 89

CodeSuite copyright 2003-2012 by Software Analysis and Forensic Engineering Corporation