Code example for SourceLocator

Methods: getColumnNumbergetLineNumber

0
   * 
   * @param locator Source Locator with location information for this element 
   */ 
  public void setLocaterInfo(SourceLocator locator)
  { 
    m_lineNumber = locator.getLineNumber();
    m_columnNumber = locator.getColumnNumber();
  } 
   
  /** 
   * Set the end location information for this element. 
   * 
   * @param locator Source Locator with location information for this element 
   */ 
  public void setEndLocaterInfo(SourceLocator locator)
  { 
	m_endLineNumber = locator.getLineNumber();
	m_endColumnNumber = locator.getColumnNumber();
  }  
 
Connect your IDE to all the code out there  Get Codota for Java