org.eclipse.emf.mwe.internal.core.ast.parser
Class XmlLocationAnalyser

java.lang.Object
  extended by org.eclipse.emf.mwe.internal.core.ast.parser.XmlLocationAnalyser

public class XmlLocationAnalyser
extends java.lang.Object


Nested Class Summary
 class XmlLocationAnalyser.XmlFileEvaluator
           
protected  class XmlLocationAnalyser.XmlTagValues
           
 
Field Summary
protected  ResourceLoader loader
           
 
Constructor Summary
XmlLocationAnalyser()
           
 
Method Summary
 Location adapt(Location loc)
          the SAX parser has no exact location handling.
 Location adaptEnd(Location loc)
           
 int findFirstLineOfTag(java.lang.String resource, int lineNumber)
           
 XmlLocationAnalyser.XmlFileEvaluator newEvaluator__TEST()
          FOR TEST ONLY
protected  XmlLocationAnalyser.XmlFileEvaluator newEvaluator()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

loader

protected ResourceLoader loader
Constructor Detail

XmlLocationAnalyser

public XmlLocationAnalyser()
Method Detail

adapt

public Location adapt(Location loc)
the SAX parser has no exact location handling. The offset and length information are updated here.
TODO: ER: add location of attributes (e.g. for error handling of not existing cartridge file)

Parameters:
loc - the (raw) location to be adapted

adaptEnd

public Location adaptEnd(Location loc)

findFirstLineOfTag

public int findFirstLineOfTag(java.lang.String resource,
                              int lineNumber)

newEvaluator

protected XmlLocationAnalyser.XmlFileEvaluator newEvaluator()

newEvaluator__TEST

public XmlLocationAnalyser.XmlFileEvaluator newEvaluator__TEST()
FOR TEST ONLY