Examples of FileLocation


Examples of de.saumya.mojo.proxy.Controller.FileLocation

    @Override
    protected void doGet(final HttpServletRequest req,
            final HttpServletResponse resp) throws ServletException,
            IOException {
        FileLocation file = controller.locate(req.getPathInfo().substring(1));

        switch(file.type){
        case NOT_FOUND:
            resp.sendError(HttpServletResponse.SC_NOT_FOUND, file.content);
            break;
View Full Code Here

Examples of org.apache.maven.shared.io.location.FileLocation

        Location location = null;

        if ( file.exists() )
        {
            location = new FileLocation( file, locationSpecification );
        }
        else
        {
            messageHolder.addMessage( "File: " + file.getAbsolutePath() + " does not exist." );
        }
View Full Code Here

Examples of org.apache.maven.shared.io.location.FileLocation

        Location location = null;

        if ( file.exists() )
        {
            location = new FileLocation( file, locationSpecification );
        }
        else
        {
            messageHolder.addMessage( "File: " + file.getAbsolutePath() + " does not exist." );
        }
View Full Code Here

Examples of org.exolab.castor.xml.location.FileLocation

        if (except == null) {
            except = sex;
        }
        MarshalException marshalEx = new MarshalException(except);
        if (handler.getDocumentLocator() != null) {
            FileLocation location = new FileLocation();
            location.setFilename(handler.getDocumentLocator().getSystemId());
            location.setLineNumber(handler.getDocumentLocator().getLineNumber());
            location.setColumnNumber(handler.getDocumentLocator().getColumnNumber());
            marshalEx.setLocation(location);
        }
        throw marshalEx;
    }
View Full Code Here

Examples of wyvern.tools.errors.FileLocation

          continue;

        VarDeclaration vd = (VarDeclaration) d;
        String propName = vd.getName();
        Type type = vd.getType();
        FileLocation line = vd.getLocation();


        newEnv = newEnv.extend(new NameBindingImpl(propName, type));
        newEnv = newEnv.extend(
            new NameBindingImpl(
                "set" + propName.substring(0,1).toUpperCase() + propName.substring(1),
                new Arrow(type, Unit.getInstance())));
      } else if (d instanceof ValDeclaration) {
        if (((ValDeclaration) d).isClassMember() != useClassMembers)
          continue;

        ValDeclaration vd = (ValDeclaration) d;
        String propName = vd.getName();
        Type type = vd.getType();
        FileLocation line = vd.getLocation();

        DefDeclaration getter = new DefDeclaration(propName, type,
            new LinkedList<NameBinding>(), null, false, line);

        newEnv = getter.extend(newEnv, newEnv);
View Full Code Here

Examples of wyvern.tools.errors.FileLocation

        "\tpushToken((Terminals)(((JavaObj)((TupleValue)v).getValue(0)).getObj()), ((StringConstant)((TupleValue)v).getValue(1)).getValue());\n" +
        "\treturn UnitVal.getInstance(FileLocation.UNKNOWN);\n" +
        "});\n" +
        "terminals = Util.javaToWyvDecl("+javaClassName+".Terminals.class).getClassObj();");

    FileLocation unkLoc = FileLocation.UNKNOWN;


    ParserCompilerParameters pcp = new ParserCompilerParameters();

    ByteArrayOutputStream target = new ByteArrayOutputStream();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.