Package at.ssw.coco.core

Examples of at.ssw.coco.core.Mapping$Position


    IPath framesDirPath = getFramesDirPath(resource, sourceDirPath);

    IContainer[] outputContainers = resource.getWorkspace().getRoot()
        .findContainersForLocationURI(outputDirPath.toFile().toURI());
    boolean outputInWorkspace = outputContainers.length != 0; // mapping useful?
    Mapping mapping = outputInWorkspace ? new Mapping() : null;

    // execute Coco
    List<CocoError> errors = execute(filePath.toOSString(),
        framesDirPath.toOSString(), outputDirPath.toOSString(),
        getPackageName(resource, outputDirPath), getTraceString(resource), mapping);
View Full Code Here


    for (IFile atgFile : files) {
      if (!atgFile.exists()) continue;

      cleanJavaMarkers(atgFile);

      Mapping atgmap = readMapping(resource);
      if (atgmap == null) {
        return; // missing or invalid mapping
      }

      IMarker[] javamarkers = resource.findMarkers(
View Full Code Here

  private final BufferHelper bufferHelper;

  private final Mapping mapping;

  public MappingParserGen(Parser parser) {
    this(parser, new Mapping());
  }
View Full Code Here

  public Object extractCategoryTokenData(byte[] buffer, int offset, int length) {
    if (length == 0) {
      return null;
    }
    Integer i = Integer.valueOf(Vint8.decode(buffer, new Position(offset)));
    return i;
  }
View Full Code Here

    if (!super.setdoc(docId)) {
      return false;
    }

    // read header - number of enhancements and their lengths
    Position position = new Position();
    nEnhancements = Vint8.decode(buffer, position);
    for (int i = 0; i < nEnhancements; i++) {
      enhancementLength[i] = Vint8.decode(buffer, position);
    }
View Full Code Here

  public Object extractCategoryTokenData(byte[] buffer, int offset, int length) {
    if (length == 0) {
      return null;
    }
    Integer i = Integer.valueOf(Vint8.decode(buffer, new Position(offset)));
    return i;
  }
View Full Code Here

TOP

Related Classes of at.ssw.coco.core.Mapping$Position

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.