Package anvil

Examples of anvil.Location


  }
 
  
  public Location toLocation(Token token)
  {
    return new Location(_location.getURL(),
      _location.getLine() + token.beginLine - 1,
      token.beginColumn);
 
View Full Code Here


 
 
 
  public Location toLocation(int line, int column)
  {
     return new Location(_location.getURL(),  _location.getLine() + line - 1, column);
  }
View Full Code Here

  
 
  public Location toLocation(Token token)
  {
    if (token != null) {
      return new Location(_url, token.beginLine, token.beginColumn);
    } else {
      return new Location(_url, 0, 0);
    }
  } 
View Full Code Here

 

 
  public Location toLocation(int line, int column)
  {
     return new Location(_url, line, column);
  }
View Full Code Here

      long started = System.currentTimeMillis();
      Module();
      long ended = System.currentTimeMillis();
      Statement stmt = flowPeek();
      if (stmt == null || stmt.typeOf() != Statement.ST_MODULE) {
        error(new Location(_url), "Unexcepted end of file");
        throw new ForgingException(_listener);
      }
      ModuleStatement script = (ModuleStatement)stmt;
      if (_listener != null) {
        throw new ForgingException(_listener);
View Full Code Here

  }
 

  public Location toLocation(Token token)
  {
    return new Location(_location.getURL(),
      _location.getLine() + token.beginLine - 1,
      _location.getColumn() + _position + token.beginColumn);
 
View Full Code Here

 

 
  public Location toLocation(int line, int column)
  {
    return new Location(_location.getURL(),
      _location.getLine() + line - 1,
      _location.getColumn() + _position + column);
  }
View Full Code Here

TOP

Related Classes of anvil.Location

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.