Package anvil.script.statements

Examples of anvil.script.statements.InterfaceStatement


    FunctionParameterList(parameters);
    jj_consume_token(CLOSE);
    jj_consume_token(SEMICOLON);
        Location location = toLocation(t);
        String name = s.image;
        InterfaceStatement intrface = flowPeek().getInterfaceStatement();
        InterfaceMethodStatement method = new InterfaceMethodStatement(location, intrface, name, t.document, parameters);
        if (intrface.lookupDeclaration(name) == null) {
          intrface.declare(method);
        } else {
          error(location, "Entity '" + name + "' is already declared");
        }
  }
View Full Code Here


      ;
    }
    jj_consume_token(BEGIN);
      String name = s.image;
      DefinitionStatement parent = flowPeek().getScopeStatement();
      InterfaceStatement decl = new InterfaceStatement(location, parent, name, t.document, interfaces);
      if (parent.lookupDeclaration(name) == null) {
        parent.declare(decl);
      } else {
        error(location, "Entity '"+name+"' is already declared");
      }
View Full Code Here

TOP

Related Classes of anvil.script.statements.InterfaceStatement

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.