[FOray-commit] SF.net SVN: foray:[12559] trunk/foray
Modular XSL-FO Implementation for Java.
Status: Alpha
Brought to you by:
victormote
|
From: <vic...@us...> - 2022-02-05 14:41:10
|
Revision: 12559
http://sourceforge.net/p/foray/code/12559
Author: victormote
Date: 2022-02-05 14:41:07 +0000 (Sat, 05 Feb 2022)
Log Message:
-----------
Conform to aXSL change: Simplify KpNode by moving recasting methods from KpNode to KpNode.Type.
Modified Paths:
--------------
trunk/foray/foray-common/src/main/java/org/foray/common/para/ParaBranch4a.java
trunk/foray/foray-common/src/main/java/org/foray/common/para/ParaBranch4aIterator.java
trunk/foray/foray-common/src/main/java/org/foray/common/para/ParaLeaf4a.java
trunk/foray/foray-fotree/src/main/java/org/foray/fotree/fo/obj/BlockDiscrete4a.java
trunk/foray/foray-fotree/src/main/java/org/foray/fotree/fo/obj/FoTextWords4a.java
trunk/foray/foray-linebreak/src/main/java/org/foray/linebreak/TotalFitLb.java
trunk/foray/foray-linebreak/src/test/java/org/foray/linebreak/util/DumpParaBranch.java
trunk/foray/foray-orthography/src/main/java/org/foray/orthography/DiscretionaryHyphenMutating4a.java
trunk/foray/foray-orthography/src/main/java/org/foray/orthography/Punctuation4a.java
trunk/foray/foray-orthography/src/main/java/org/foray/orthography/StringWordSegmentLatin1.java
trunk/foray/foray-orthography/src/main/java/org/foray/orthography/StringWordSegmentUtf16.java
trunk/foray/foray-orthography/src/main/java/org/foray/orthography/TokenFlow4a.java
trunk/foray/foray-orthography/src/main/java/org/foray/orthography/Whitespace4a.java
trunk/foray/foray-orthography/src/main/java/org/foray/orthography/Word4a.java
trunk/foray/foray-orthography/src/test/java/org/foray/orthography/SegmentDictionaryWordTests.java
trunk/foray/foray-orthography/src/test/java/org/foray/orthography/StringWordTests.java
trunk/foray/foray-orthography/src/test/java/org/foray/orthography/WordWrapperTests.java
trunk/foray/foray-pioneer/src/main/java/org/foray/pioneer/BlockDiscretePnr.java
Modified: trunk/foray/foray-common/src/main/java/org/foray/common/para/ParaBranch4a.java
===================================================================
--- trunk/foray/foray-common/src/main/java/org/foray/common/para/ParaBranch4a.java 2022-02-04 23:09:40 UTC (rev 12558)
+++ trunk/foray/foray-common/src/main/java/org/foray/common/para/ParaBranch4a.java 2022-02-05 14:41:07 UTC (rev 12559)
@@ -55,16 +55,6 @@
}
@Override
- public KpLeaf asParaLeaf() {
- return null;
- }
-
- @Override
- public KpBranch asParaBranch() {
- return this;
- }
-
- @Override
public int qtyParaNodes() {
return this.nodes.size();
}
@@ -78,7 +68,8 @@
public int qtyParaLeaves() {
int returnValue = 0;
for (int nodeIndex = 0; nodeIndex < qtyParaNodes(); nodeIndex ++) {
- final KpBranch childBranch = paraNodeAt(nodeIndex).asParaBranch();
+ final KpNode node = paraNodeAt(nodeIndex);
+ final KpBranch childBranch = KpNode.Type.asBranch(node);
if (childBranch == null) {
/* Child node is a leaf. */
returnValue ++;
@@ -101,10 +92,10 @@
int runningLeafIndex = 0;
for (int nodeIndex = 0; nodeIndex < branch.qtyParaNodes(); nodeIndex ++) {
final KpNode node = branch.paraNodeAt(nodeIndex);
- final KpBranch childBranch = node.asParaBranch();
- final KpLeaf leaf = node.asParaLeaf();
+ final KpBranch childBranch = KpNode.Type.asBranch(node);
if (runningLeafIndex == leafIndex) {
+ final KpLeaf leaf = KpNode.Type.asLeaf(node);
if (leaf != null) {
return leaf;
} else {
@@ -136,10 +127,10 @@
int returnValue = 0;
for (int nodeIndex = 0; nodeIndex < qtyParaNodes(); nodeIndex ++) {
final KpNode node = paraNodeAt(nodeIndex);
- final KpBranch childBranch = node.asParaBranch();
+ final KpBranch childBranch = KpNode.Type.asBranch(node);
if (childBranch == null) {
/* Child node is a leaf. */
- final KpLeaf leaf = node.asParaLeaf();
+ final KpLeaf leaf = (KpLeaf) node;
returnValue += leaf.qtyKpLeaves();
} else {
/* Child node is a branch. */
Modified: trunk/foray/foray-common/src/main/java/org/foray/common/para/ParaBranch4aIterator.java
===================================================================
--- trunk/foray/foray-common/src/main/java/org/foray/common/para/ParaBranch4aIterator.java 2022-02-04 23:09:40 UTC (rev 12558)
+++ trunk/foray/foray-common/src/main/java/org/foray/common/para/ParaBranch4aIterator.java 2022-02-05 14:41:07 UTC (rev 12559)
@@ -105,11 +105,13 @@
return internalNext();
}
final KpNode node = currentBranch.paraNodeAt(nextIndex);
- if (node.asParaLeaf() != null) {
+ final KpLeaf leaf = KpNode.Type.asLeaf(node);
+ if (leaf != null) {
incrementBranchIndex();
- return node.asParaLeaf();
+ return leaf;
}
- this.branchStack.push(node.asParaBranch());
+ final KpBranch branch = (KpBranch) node;
+ this.branchStack.push(branch);
this.branchIndexes.push(0);
return internalNext();
}
@@ -143,11 +145,12 @@
return internalPrevious();
}
final KpNode node = currentBranch.paraNodeAt(previousIndex);
- if (node.asParaLeaf() != null) {
+ final KpLeaf leaf = KpNode.Type.asLeaf(node);
+ if (leaf != null) {
decrementBranchIndex();
- return node.asParaLeaf();
+ return leaf;
}
- final KpBranch branch = node.asParaBranch();
+ final KpBranch branch = (KpBranch) node;
this.branchStack.push(branch);
this.branchIndexes.push(branch.qtyParaNodes());
return internalPrevious();
Modified: trunk/foray/foray-common/src/main/java/org/foray/common/para/ParaLeaf4a.java
===================================================================
--- trunk/foray/foray-common/src/main/java/org/foray/common/para/ParaLeaf4a.java 2022-02-04 23:09:40 UTC (rev 12558)
+++ trunk/foray/foray-common/src/main/java/org/foray/common/para/ParaLeaf4a.java 2022-02-05 14:41:07 UTC (rev 12559)
@@ -28,7 +28,6 @@
package org.foray.common.para;
-import org.axsl.kpModel.KpBranch;
import org.axsl.kpModel.KpLeaf;
import org.axsl.kpModel.KpNode;
@@ -43,16 +42,6 @@
}
@Override
- public KpLeaf asParaLeaf() {
- return this;
- }
-
- @Override
- public KpBranch asParaBranch() {
- return null;
- }
-
- @Override
public int qtyParaNodes() {
return 0;
}
Modified: trunk/foray/foray-fotree/src/main/java/org/foray/fotree/fo/obj/BlockDiscrete4a.java
===================================================================
--- trunk/foray/foray-fotree/src/main/java/org/foray/fotree/fo/obj/BlockDiscrete4a.java 2022-02-04 23:09:40 UTC (rev 12558)
+++ trunk/foray/foray-fotree/src/main/java/org/foray/fotree/fo/obj/BlockDiscrete4a.java 2022-02-05 14:41:07 UTC (rev 12559)
@@ -222,7 +222,7 @@
int count = 0;
for (int nodeIndex = 0; nodeIndex < qtyParaNodes(); nodeIndex ++) {
final KpNode node = paraNodeAt(nodeIndex);
- final KpBranch branch = node.asParaBranch();
+ final KpBranch branch = KpNode.Type.asBranch(node);
if (branch == null) {
count ++;
} else {
@@ -240,11 +240,11 @@
int totalLength = 0;
for (int nodeIndex = 0; nodeIndex < qtyParaNodes(); nodeIndex ++) {
final KpNode node = paraNodeAt(nodeIndex);
- final KpBranch branch = node.asParaBranch();
+ final KpBranch branch = KpNode.Type.asBranch(node);
if (branch == null) {
/* Node is a leaf. */
if (leafIndex == totalLength) {
- return node.asParaLeaf();
+ return (KpLeaf) node;
} else {
totalLength ++;
}
@@ -272,16 +272,6 @@
}
@Override
- public KpLeaf asParaLeaf() {
- return null;
- }
-
- @Override
- public KpBranch asParaBranch() {
- return this;
- }
-
- @Override
public int qtyKpLeaves() {
/* TODO: Support this. */
throw new UnsupportedOperationException();
Modified: trunk/foray/foray-fotree/src/main/java/org/foray/fotree/fo/obj/FoTextWords4a.java
===================================================================
--- trunk/foray/foray-fotree/src/main/java/org/foray/fotree/fo/obj/FoTextWords4a.java 2022-02-04 23:09:40 UTC (rev 12558)
+++ trunk/foray/foray-fotree/src/main/java/org/foray/fotree/fo/obj/FoTextWords4a.java 2022-02-05 14:41:07 UTC (rev 12559)
@@ -122,16 +122,6 @@
}
@Override
- public KpLeaf asParaLeaf() {
- return null;
- }
-
- @Override
- public KpBranch asParaBranch() {
- return this;
- }
-
- @Override
public int qtyParaNodes() {
return 1;
}
Modified: trunk/foray/foray-linebreak/src/main/java/org/foray/linebreak/TotalFitLb.java
===================================================================
--- trunk/foray/foray-linebreak/src/main/java/org/foray/linebreak/TotalFitLb.java 2022-02-04 23:09:40 UTC (rev 12558)
+++ trunk/foray/foray-linebreak/src/main/java/org/foray/linebreak/TotalFitLb.java 2022-02-05 14:41:07 UTC (rev 12559)
@@ -150,7 +150,7 @@
private void flatten(final KpNode node, final IntArrayBuilder currentPath, final ParaConfig paraConfig) {
switch (node.getParaNodeType()) {
case LEAF: {
- final KpLeaf leaf = node.asParaLeaf();
+ final KpLeaf leaf = (KpLeaf) node;
final int index = this.contentNodes.size();
final OrderedTreePath4a path = new OrderedTreePath4a(currentPath.toIntArray());
final LbNodeWrapper wrapper = new LbNodeWrapper(leaf, paraConfig, index, path);
@@ -158,7 +158,7 @@
break;
}
case BRANCH: {
- final KpBranch branch = node.asParaBranch();
+ final KpBranch branch = (KpBranch) node;
this.branchStack.push(branch);
for (int index = 0; index < branch.qtyParaNodes(); index ++) {
final KpNode childNode = branch.paraNodeAt(index);
Modified: trunk/foray/foray-linebreak/src/test/java/org/foray/linebreak/util/DumpParaBranch.java
===================================================================
--- trunk/foray/foray-linebreak/src/test/java/org/foray/linebreak/util/DumpParaBranch.java 2022-02-04 23:09:40 UTC (rev 12558)
+++ trunk/foray/foray-linebreak/src/test/java/org/foray/linebreak/util/DumpParaBranch.java 2022-02-05 14:41:07 UTC (rev 12559)
@@ -62,7 +62,8 @@
int startKpLeafIndex = 0;
for (int nodeIndex = 0; nodeIndex < branch.qtyParaNodes(); nodeIndex ++) {
final KpNode node = branch.paraNodeAt(nodeIndex);
- final int qtyLeaves = node.asParaBranch() == null ? 1 : ((KpBranch) node).qtyParaLeaves();
+ final KpBranch childBranch = KpNode.Type.asBranch(node);
+ final int qtyLeaves = childBranch == null ? 1 : childBranch.qtyParaLeaves();
final int qtyKpLeaves = node.qtyKpLeaves();
final String line = String.format(FORMAT, nodeIndex, startLeafIndex, qtyLeaves, startKpLeafIndex,
qtyKpLeaves, node);
Modified: trunk/foray/foray-orthography/src/main/java/org/foray/orthography/DiscretionaryHyphenMutating4a.java
===================================================================
--- trunk/foray/foray-orthography/src/main/java/org/foray/orthography/DiscretionaryHyphenMutating4a.java 2022-02-04 23:09:40 UTC (rev 12558)
+++ trunk/foray/foray-orthography/src/main/java/org/foray/orthography/DiscretionaryHyphenMutating4a.java 2022-02-05 14:41:07 UTC (rev 12559)
@@ -38,7 +38,6 @@
import org.axsl.fotree.text.FoDiscretionaryHyphen;
import org.axsl.kpModel.KpBox;
-import org.axsl.kpModel.KpBranch;
import org.axsl.kpModel.KpGlue;
import org.axsl.kpModel.KpLeaf;
import org.axsl.kpModel.KpNode;
@@ -198,16 +197,6 @@
}
@Override
- public KpLeaf asParaLeaf() {
- return this;
- }
-
- @Override
- public KpBranch asParaBranch() {
- return null;
- }
-
- @Override
public CharSequence getText() {
return "-";
}
Modified: trunk/foray/foray-orthography/src/main/java/org/foray/orthography/Punctuation4a.java
===================================================================
--- trunk/foray/foray-orthography/src/main/java/org/foray/orthography/Punctuation4a.java 2022-02-04 23:09:40 UTC (rev 12558)
+++ trunk/foray/foray-orthography/src/main/java/org/foray/orthography/Punctuation4a.java 2022-02-05 14:41:07 UTC (rev 12559)
@@ -32,7 +32,6 @@
import org.axsl.fotree.text.FoPunctuation;
import org.axsl.kpModel.KpBox;
-import org.axsl.kpModel.KpBranch;
import org.axsl.kpModel.KpGlue;
import org.axsl.kpModel.KpLeaf;
import org.axsl.kpModel.KpNode;
@@ -187,16 +186,6 @@
}
@Override
- public KpLeaf asParaLeaf() {
- return this;
- }
-
- @Override
- public KpBranch asParaBranch() {
- return null;
- }
-
- @Override
public KpLeaf.Type getParaLeafType() {
return KpLeaf.Type.BOX;
}
Modified: trunk/foray/foray-orthography/src/main/java/org/foray/orthography/StringWordSegmentLatin1.java
===================================================================
--- trunk/foray/foray-orthography/src/main/java/org/foray/orthography/StringWordSegmentLatin1.java 2022-02-04 23:09:40 UTC (rev 12558)
+++ trunk/foray/foray-orthography/src/main/java/org/foray/orthography/StringWordSegmentLatin1.java 2022-02-05 14:41:07 UTC (rev 12559)
@@ -31,7 +31,6 @@
import org.foray.common.primitive.StringLatin1;
import org.axsl.kpModel.KpBox;
-import org.axsl.kpModel.KpBranch;
import org.axsl.kpModel.KpGlue;
import org.axsl.kpModel.KpLeaf;
import org.axsl.kpModel.KpNode;
@@ -71,16 +70,6 @@
}
@Override
- public KpLeaf asParaLeaf() {
- return this;
- }
-
- @Override
- public KpBranch asParaBranch() {
- return null;
- }
-
- @Override
public Type getParaLeafType() {
return KpLeaf.Type.BOX;
}
Modified: trunk/foray/foray-orthography/src/main/java/org/foray/orthography/StringWordSegmentUtf16.java
===================================================================
--- trunk/foray/foray-orthography/src/main/java/org/foray/orthography/StringWordSegmentUtf16.java 2022-02-04 23:09:40 UTC (rev 12558)
+++ trunk/foray/foray-orthography/src/main/java/org/foray/orthography/StringWordSegmentUtf16.java 2022-02-05 14:41:07 UTC (rev 12559)
@@ -31,7 +31,6 @@
import org.foray.common.primitive.StringUtf16;
import org.axsl.kpModel.KpBox;
-import org.axsl.kpModel.KpBranch;
import org.axsl.kpModel.KpGlue;
import org.axsl.kpModel.KpLeaf;
import org.axsl.kpModel.KpNode;
@@ -71,16 +70,6 @@
}
@Override
- public KpLeaf asParaLeaf() {
- return this;
- }
-
- @Override
- public KpBranch asParaBranch() {
- return null;
- }
-
- @Override
public Type getParaLeafType() {
return KpLeaf.Type.BOX;
}
Modified: trunk/foray/foray-orthography/src/main/java/org/foray/orthography/TokenFlow4a.java
===================================================================
--- trunk/foray/foray-orthography/src/main/java/org/foray/orthography/TokenFlow4a.java 2022-02-04 23:09:40 UTC (rev 12558)
+++ trunk/foray/foray-orthography/src/main/java/org/foray/orthography/TokenFlow4a.java 2022-02-05 14:41:07 UTC (rev 12559)
@@ -36,7 +36,6 @@
import org.axsl.fotree.text.FoTextTokenFlow;
import org.axsl.fotree.text.FoWord;
import org.axsl.fotree.text.FoWordSegment;
-import org.axsl.kpModel.KpBranch;
import org.axsl.kpModel.KpLeaf;
import org.axsl.kpModel.KpNode;
import org.axsl.orthography.TextTokenFlowLocation;
@@ -182,16 +181,6 @@
}
@Override
- public KpLeaf asParaLeaf() {
- return null;
- }
-
- @Override
- public KpBranch asParaBranch() {
- return this;
- }
-
- @Override
public int qtyParaNodes() {
return this.tokens.size();
}
Modified: trunk/foray/foray-orthography/src/main/java/org/foray/orthography/Whitespace4a.java
===================================================================
--- trunk/foray/foray-orthography/src/main/java/org/foray/orthography/Whitespace4a.java 2022-02-04 23:09:40 UTC (rev 12558)
+++ trunk/foray/foray-orthography/src/main/java/org/foray/orthography/Whitespace4a.java 2022-02-05 14:41:07 UTC (rev 12559)
@@ -35,7 +35,6 @@
import org.axsl.fotree.text.FoWhitespace;
import org.axsl.kpModel.KpBox;
-import org.axsl.kpModel.KpBranch;
import org.axsl.kpModel.KpGlue;
import org.axsl.kpModel.KpLeaf;
import org.axsl.kpModel.KpNode;
@@ -123,16 +122,6 @@
}
@Override
- public KpLeaf asParaLeaf() {
- return this;
- }
-
- @Override
- public KpBranch asParaBranch() {
- return null;
- }
-
- @Override
public int getStretchability(final ParaConfig config) {
return config.getStretchability(this);
}
Modified: trunk/foray/foray-orthography/src/main/java/org/foray/orthography/Word4a.java
===================================================================
--- trunk/foray/foray-orthography/src/main/java/org/foray/orthography/Word4a.java 2022-02-04 23:09:40 UTC (rev 12558)
+++ trunk/foray/foray-orthography/src/main/java/org/foray/orthography/Word4a.java 2022-02-05 14:41:07 UTC (rev 12559)
@@ -35,7 +35,6 @@
import org.axsl.fotree.text.FoWord;
import org.axsl.fotree.text.FoWordComponent;
import org.axsl.fotree.text.FoWordSegment;
-import org.axsl.kpModel.KpBranch;
import org.axsl.kpModel.KpLeaf;
import org.axsl.kpModel.KpNode;
import org.axsl.kpModel.KpPenalty;
@@ -204,16 +203,6 @@
}
@Override
- public KpLeaf asParaLeaf() {
- return null;
- }
-
- @Override
- public KpBranch asParaBranch() {
- return this;
- }
-
- @Override
public int qtyParaNodes() {
return this.qtyWordComponents();
}
Modified: trunk/foray/foray-orthography/src/test/java/org/foray/orthography/SegmentDictionaryWordTests.java
===================================================================
--- trunk/foray/foray-orthography/src/test/java/org/foray/orthography/SegmentDictionaryWordTests.java 2022-02-04 23:09:40 UTC (rev 12558)
+++ trunk/foray/foray-orthography/src/test/java/org/foray/orthography/SegmentDictionaryWordTests.java 2022-02-05 14:41:07 UTC (rev 12559)
@@ -127,7 +127,7 @@
@Test
public void asParaLeafTests() {
final SegmentDictionaryWord word = dictionary.getWord("ambition", 0);
- Assert.assertNull(word.asParaLeaf());
+ Assert.assertNull(KpNode.Type.asLeaf(word));
}
/**
@@ -137,7 +137,7 @@
public void asParaBranchTests() {
final SegmentDictionaryWord word = dictionary.getWord("ambition", 0);
/* Test for identity equality. */
- Assert.assertTrue(word.asParaBranch() == word);
+ Assert.assertTrue(KpNode.Type.asBranch(word) == word);
}
/**
Modified: trunk/foray/foray-orthography/src/test/java/org/foray/orthography/StringWordTests.java
===================================================================
--- trunk/foray/foray-orthography/src/test/java/org/foray/orthography/StringWordTests.java 2022-02-04 23:09:40 UTC (rev 12558)
+++ trunk/foray/foray-orthography/src/test/java/org/foray/orthography/StringWordTests.java 2022-02-05 14:41:07 UTC (rev 12559)
@@ -28,6 +28,7 @@
package org.foray.orthography;
+import org.axsl.kpModel.KpNode;
import org.axsl.orthography.DiscretionaryHyphen;
import org.junit.Assert;
@@ -122,10 +123,10 @@
Assert.assertEquals(DiscretionaryHyphen4a.class, WORD_PHILOSOPHY.paraNodeAt(5).getClass());
Assert.assertEquals(StringWordSegmentUtf16.class, WORD_PHILOSOPHY.paraNodeAt(6).getClass());
- Assert.assertEquals("phi", WORD_PHILOSOPHY.paraNodeAt(0).asParaLeaf().getText());
- Assert.assertEquals("los", WORD_PHILOSOPHY.paraNodeAt(2).asParaLeaf().getText());
- Assert.assertEquals("o", WORD_PHILOSOPHY.paraNodeAt(4).asParaLeaf().getText());
- Assert.assertEquals("phy", WORD_PHILOSOPHY.paraNodeAt(6).asParaLeaf().getText());
+ Assert.assertEquals("phi", KpNode.Type.asLeaf(WORD_PHILOSOPHY.paraNodeAt(0)).getText());
+ Assert.assertEquals("los", KpNode.Type.asLeaf(WORD_PHILOSOPHY.paraNodeAt(2)).getText());
+ Assert.assertEquals("o", KpNode.Type.asLeaf(WORD_PHILOSOPHY.paraNodeAt(4)).getText());
+ Assert.assertEquals("phy", KpNode.Type.asLeaf(WORD_PHILOSOPHY.paraNodeAt(6)).getText());
/* Test an index that is too low. */
try {
Modified: trunk/foray/foray-orthography/src/test/java/org/foray/orthography/WordWrapperTests.java
===================================================================
--- trunk/foray/foray-orthography/src/test/java/org/foray/orthography/WordWrapperTests.java 2022-02-04 23:09:40 UTC (rev 12558)
+++ trunk/foray/foray-orthography/src/test/java/org/foray/orthography/WordWrapperTests.java 2022-02-05 14:41:07 UTC (rev 12559)
@@ -270,7 +270,7 @@
*/
@Test
public void testAsParaLeaf() {
- Assert.assertNull(this.out.asParaLeaf());
+ Assert.assertNull(KpNode.Type.asLeaf(this.out));
}
/**
@@ -279,7 +279,7 @@
@Test
public void testAsParaBranch() {
/* Test for identity equality. */
- Assert.assertTrue(this.out.asParaBranch() == this.out);
+ Assert.assertTrue(KpNode.Type.asBranch(this.out) == this.out);
}
/**
Modified: trunk/foray/foray-pioneer/src/main/java/org/foray/pioneer/BlockDiscretePnr.java
===================================================================
--- trunk/foray/foray-pioneer/src/main/java/org/foray/pioneer/BlockDiscretePnr.java 2022-02-04 23:09:40 UTC (rev 12558)
+++ trunk/foray/foray-pioneer/src/main/java/org/foray/pioneer/BlockDiscretePnr.java 2022-02-05 14:41:07 UTC (rev 12559)
@@ -93,6 +93,7 @@
int branchNodesConsumed = 0;
for (int contentIndex = lastBreakPosition; contentIndex < breakPosition; contentIndex ++) {
final KpNode paraNode = this.blockDiscrete.paraNodeAt(contentIndex);
+ final KpNode.Type nodeType = paraNode.getParaNodeType();
switch (paraNode.getParaNodeType()) {
case LEAF: {
currentBranch = null;
@@ -106,7 +107,7 @@
break;
}
case BRANCH: {
- final KpBranch branch = paraNode.asParaBranch();
+ final KpBranch branch = nodeType == KpNode.Type.BRANCH ? (KpBranch) paraNode : null;
if (currentBranch == null
/* This is deliberately an identity test, not an equality test. */
|| currentBranch != branch) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|