poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n...@apache.org
Subject svn commit: r1612140 - in /poi/trunk/src/java/org/apache/poi/ss/formula/eval: ExternalNameEval.java FunctionNameEval.java NameEval.java NameXEval.java
Date Sun, 20 Jul 2014 18:14:48 GMT
Author: nick
Date: Sun Jul 20 18:14:47 2014
New Revision: 1612140

URL: http://svn.apache.org/r1612140
Log:
Rename missing from previous commit

Added:
    poi/trunk/src/java/org/apache/poi/ss/formula/eval/ExternalNameEval.java
      - copied, changed from r1612139, poi/trunk/src/java/org/apache/poi/ss/formula/eval/NameXEval.java
    poi/trunk/src/java/org/apache/poi/ss/formula/eval/FunctionNameEval.java
      - copied, changed from r1612139, poi/trunk/src/java/org/apache/poi/ss/formula/eval/NameEval.java
Removed:
    poi/trunk/src/java/org/apache/poi/ss/formula/eval/NameEval.java
    poi/trunk/src/java/org/apache/poi/ss/formula/eval/NameXEval.java

Copied: poi/trunk/src/java/org/apache/poi/ss/formula/eval/ExternalNameEval.java (from r1612139,
poi/trunk/src/java/org/apache/poi/ss/formula/eval/NameXEval.java)
URL: http://svn.apache.org/viewvc/poi/trunk/src/java/org/apache/poi/ss/formula/eval/ExternalNameEval.java?p2=poi/trunk/src/java/org/apache/poi/ss/formula/eval/ExternalNameEval.java&p1=poi/trunk/src/java/org/apache/poi/ss/formula/eval/NameXEval.java&r1=1612139&r2=1612140&rev=1612140&view=diff
==============================================================================
--- poi/trunk/src/java/org/apache/poi/ss/formula/eval/NameXEval.java (original)
+++ poi/trunk/src/java/org/apache/poi/ss/formula/eval/ExternalNameEval.java Sun Jul 20 18:14:47
2014
@@ -17,26 +17,26 @@
 
 package org.apache.poi.ss.formula.eval;
 
-import org.apache.poi.ss.formula.ptg.NameXPtg;
+import org.apache.poi.ss.formula.EvaluationName;
 
 /**
  * Evaluation of a Name defined in a Sheet or Workbook scope
  */
-public final class NameXEval implements ValueEval {
-	private final NameXPtg _ptg;
+public final class ExternalNameEval implements ValueEval {
+	private final EvaluationName _name;
 
-	public NameXEval(NameXPtg ptg) {
-		_ptg = ptg;
+	public ExternalNameEval(EvaluationName name) {
+		_name = name;
 	}
 
-	public NameXPtg getPtg() {
-		return _ptg;
+	public EvaluationName getName() {
+		return _name;
 	}
 
 	public String toString() {
 		StringBuffer sb = new StringBuffer(64);
 		sb.append(getClass().getName()).append(" [");
-		sb.append(_ptg.getSheetRefIndex()).append(", ").append(_ptg.getNameIndex());
+		sb.append(_name.getNameText());
 		sb.append("]");
 		return sb.toString();
 	}

Copied: poi/trunk/src/java/org/apache/poi/ss/formula/eval/FunctionNameEval.java (from r1612139,
poi/trunk/src/java/org/apache/poi/ss/formula/eval/NameEval.java)
URL: http://svn.apache.org/viewvc/poi/trunk/src/java/org/apache/poi/ss/formula/eval/FunctionNameEval.java?p2=poi/trunk/src/java/org/apache/poi/ss/formula/eval/FunctionNameEval.java&p1=poi/trunk/src/java/org/apache/poi/ss/formula/eval/NameEval.java&r1=1612139&r2=1612140&rev=1612140&view=diff
==============================================================================
--- poi/trunk/src/java/org/apache/poi/ss/formula/eval/NameEval.java (original)
+++ poi/trunk/src/java/org/apache/poi/ss/formula/eval/FunctionNameEval.java Sun Jul 20 18:14:47
2014
@@ -20,14 +20,14 @@ package org.apache.poi.ss.formula.eval;
 /**
  * @author Josh Micich
  */
-public final class NameEval implements ValueEval {
+public final class FunctionNameEval implements ValueEval {
 
 	private final String _functionName;
 
 	/**
 	 * Creates a NameEval representing a function name
 	 */
-	public NameEval(String functionName) {
+	public FunctionNameEval(String functionName) {
 		_functionName = functionName;
 	}
 



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message