Package com.caucho.java

Examples of com.caucho.java.LineMap$Line


  /**
   * Creates a new line map.
   */
  public void setLineMap(String filename)
  {
    _lineMap = new LineMap(filename);
  }
View Full Code Here


    }
    else {
      this.name = name;
    }

    lineMap = new LineMap(name, srcFilename);
    lineMap.add(1, 1);
    destLine = 1;
  }
View Full Code Here

  JspGenerator generator = compilerInst.generate();
 
  if (generator.isStatic())
    return true;
 
  LineMap lineMap = generator.getLineMap();

  synchronized (_classes) {
    _classes.add(className.replace('.', '/') + ".java");
  }
      } catch (Exception e) {
View Full Code Here

    else if (prefix.length() > 0)
      _pkg = prefix;

    _workPath = _pkg.replace('.', '/');

    _lineMap = new LineMap(className.replace('.', '/') + ".java");
  }
View Full Code Here

        className = "";
        function = fun.toString();
      }

      Global global = Global.getGlobalProto();
      LineMap lineMap = global != null ? global.getLineMap(className) : null;
      String line = file.toString();

      if (lineMap != null) {
        p = file.indexOf(':');
        if (p > 0) {
          try {
            String filename = file.substring(0, p);
            int lineNo = Integer.parseInt(file.substring(p + 1));
            line = lineMap.convertLine(filename, lineNo);
          } catch (Exception e) {
          }
        }
        else
          line = lineMap.convertLine(file.toString(), 1);
      }

      buf.append("\tat ");
      buf.append(fun);
      buf.append("(");
View Full Code Here

  /**
   * Creates a new line map.
   */
  public void setLineMap(String filename)
  {
    _lineMap = new LineMap(filename);
  }
View Full Code Here

        "position: absolute; width:100%; height:100%; left:0px; top:0px;");   
    Node n = document.appendChild(xhtmlDiv);
     
      // Convert the object itself to SVG
    Svg svg = oFactory.createSvg();
      Line line = oFactory.createLine();
      svg.getSVGDescriptionClassOrSVGAnimationClassOrSVGStructureClass().add(line);
     
      line.setX1(b.getOffset().getXAsString() );
      line.setY1(b.getOffset().getYAsString() );
     
      Point otherEnd = b.getOtherCorner();
     
      line.setX2( otherEnd.getXAsString() );
      line.setY2( otherEnd.getYAsString() );

      line.setStyle("stroke:rgb(99,99,99)");
      // You can't see the line in Midori, unless you specify the color.
      // width eg stroke-width:2 is optional
     
      Document d2 = XmlUtils.marshaltoW3CDomDocument(svg, jcSVG);  
      XmlUtils.treeCopy(d2, n);
View Full Code Here

TOP

Related Classes of com.caucho.java.LineMap$Line

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.