Code example for SourceLocator

Methods: getLineNumber

0
    public int getColumnNo() { 
        return _sloc.getColumnNumber();
    } 
 
    public int getLineNo() { 
        return _sloc.getLineNumber();
    } 
 
    public String getPath() {
        return ""; 
    } 
 
    public URI getURI() {
        try { 
            return new URI(_sloc.getSystemId());
        } catch (Exception e) {
            return null; 
        } 
    } 
 
Contextual code suggestions in your IDE  Get Codota for Java