incubator-imperius-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From daw...@apache.org
Subject svn commit: r945352 - /incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/compiler/symboltable/SPLSymbolTable.java
Date Mon, 17 May 2010 20:35:29 GMT
Author: dawood
Date: Mon May 17 20:35:29 2010
New Revision: 945352

URL: http://svn.apache.org/viewvc?rev=945352&view=rev
Log:
Add getClassNameOfInstance() method for PrimaryExpression (i think).

Modified:
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/compiler/symboltable/SPLSymbolTable.java

Modified: incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/compiler/symboltable/SPLSymbolTable.java
URL: http://svn.apache.org/viewvc/incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/compiler/symboltable/SPLSymbolTable.java?rev=945352&r1=945351&r2=945352&view=diff
==============================================================================
--- incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/compiler/symboltable/SPLSymbolTable.java
(original)
+++ incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/compiler/symboltable/SPLSymbolTable.java
Mon May 17 20:35:29 2010
@@ -299,7 +299,7 @@ public class SPLSymbolTable 
 			{
 				//System.out.println("trying parent symboltable");
 //				retSym = (Symbol)_parentTable.getSymbol(name);
-				obj = _parentTable.getSymbol(name);
+				obj = _parentTable.getSymbol(name); 
 			}
 		}
 
@@ -386,9 +386,9 @@ public class SPLSymbolTable 
 
 						// xiping's test 06/19/09
 						_symbolMap.put(instanceName + "." + key, obj);
-//
+
 						//System.out.println("Symbol added to symbolmap : "+instanceName + "." + key);
-					}	
+					}
 					
 				}
 				else
@@ -593,6 +593,10 @@ public class SPLSymbolTable 
 		return anchorClassList;
 	}
 	
+	public String getClassNameOfInstance(String instanceName) {
+		return _anchorData.getClassNameOfInstance(instanceName);
+	}
+	
 	public String getQualifierForClass(String className)
 	{
 		String qualifier = _anchorData.getQualifierForClass(className);



Mime
View raw message