Package anvil

Examples of anvil.Location


  }


  public void call(Any callable, String s)
  {
    Location loc = _locator.getLocation();
    callable.execute(_context,
      Any.create(loc.getLine()),
      Any.create(loc.getColumn()),
      Any.create(s));
  }
View Full Code Here


 
 
 
  public void onTag(Tag tag)
  {
    Location loc = _locator.getLocation();
    Any line = Any.create(loc.getLine());
    Any column = Any.create(loc.getColumn());
   
    if (_on_tag_start != null) {
      _on_tag_start.execute(_context, line, column, Any.create(tag.getPrefixedName()));
    } else {          
      _context.print("<font color=\"#335577\">&lt;");
View Full Code Here

  }   
 
   
  public void onCodeTag(Tag tag)
  {
    Location loc = _locator.getLocation();
    Any line = Any.create(loc.getLine());
    Any column = Any.create(loc.getColumn());
   
    if (_on_code_tag_start != null) {
      _on_code_tag_start.execute(_context, line, column, Any.create(tag.getPrefixedName()));
    } else {          
      _context.print("<strong><font color=\"#335577\">&lt;</font>");
View Full Code Here

  {
    if (_imports != null) {
      int size = _imports.size();
      for(int i=0; i<size; i++) {
        Import imprt = (Import)_imports.get(i);
        Location location = imprt.getLocation();
        Object source = imprt.getSource();
        Name[] decls = imprt.getDeclarations();
        Type type = imprt.resolve(listener);
        if (type != null) {
          if (imprt.importAll()) {
View Full Code Here

    String as       = tag.getValue("as");
    String entities = tag.getValue("entities");
    String taglib   = tag.getValue("taglib");
    String tagns    = tag.getValue("ns");
   
    Location location = parser.getLocation();
    Name[] decls = null;
    boolean star = false;
   
    if (entities != null) {
      entities = entities.trim();
View Full Code Here



  protected void onVar(TemplateParser parser, Tag tag)
  {
    Location location = parser.getLocation();
    String name = tag.getValue("name");
    String value = tag.getValue("value");
    if (name == null) {
      parser.error(location, "Attribute 'name' missing from variable type");
      return ;
View Full Code Here

  }


  protected void onConst(TemplateParser parser, Tag tag)
  {
    Location location = parser.getLocation();
    String name = tag.getValue("name");
    String value = tag.getValue("value");
    if (name == null) {
      parser.error(location, "Attribute 'name' missing from constant type");
      return;
View Full Code Here

  }


  protected void onNamespace(TemplateParser parser, int type, Tag tag)
  {
    Location location = parser.getLocation();
    String str = tag.get("name");
    if (str == null) {
      parser.error(parser.getLocation(), "Attribute 'name' missing from namepace");
      NamespaceStatement ns = new NamespaceStatement(location, this);
      ns.setName("ns$"+ns.hashCode());
View Full Code Here

  Token t;
  Statement stmt = flowPeek();
  DefinitionStatement scope = stmt.getScopeStatement();
    try {
      t = jj_consume_token(NAMESPACE);
        Location location = toLocation(t);
      scope = NamespacePart(location, scope);
      label_3:
      while (true) {
        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
        case DOT:
View Full Code Here

  Name[] decls;
  boolean added = false;
    DefinitionStatement scope = flowPeek().getDefinitionStatement();
    try {
      t = jj_consume_token(IMPORT);
      Location location = toLocation(t);
      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
      case STRING_LITERAL:
        href = jj_consume_token(STRING_LITERAL);
        String pathinfo = Conversions.unescape(href.image, true);
        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
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.