Examples of Node


Examples of com.google.code.lightssh.project.tree.entity.Node

    return nodeDao.read(node);
  }
 
  public void save(Tree t) {
    if( t.isInsert() ){
      Node root = new Node("root","tree root node!");
      t.setRoot(root);
      dao.create(t);
    }else{
      Tree db_tree = dao.read(t);
      if( db_tree != null){

Examples of com.google.gwt.dev.js.rhino.Node

      // Parse using the Rhino parser.
      //
      TokenStream ts = new TokenStream(r, rootSourceInfo.getFileName(),
          rootSourceInfo.getStartLine());
      Parser parser = new Parser(new IRFactory(ts));
      Node topNode = (Node) parser.parse(ts);

      // Map the Rhino AST to ours.
      pushScope(scope, rootSourceInfo);
      List<JsStatement> stmts = mapStatements(topNode);
      popScope();

Examples of com.google.gwt.dom.client.Node

  public void insert(HtmlObject child, int beforeIndex) {
    if (beforeIndex >= getChildCount()) {
      add(child);
      return;
    }
    Node beforeNode = getElement().getChild(beforeIndex);
    getElement().insertBefore(child.getElement(), beforeNode);
    child.setParent(this);

    List<HtmlObject> newChildList = new ArrayList<HtmlObject>();
    for (int i = 0; i < children.size(); i++) {

Examples of com.google.gwt.thirdparty.javascript.rhino.Node

  private CompilerInput createClosureJsAst(JsProgram program, JsProgramFragment fragment,
      String source) {
    String inputName = source;
    InputId inputId = new InputId(inputName);
    ClosureJsAstTranslator translator = new ClosureJsAstTranslator(validate, program);
    Node root = translator.translate(fragment, inputId, source);
    globalVars.addAll(translator.getGlobalVariableNames());
    externalProps.addAll(translator.getExternalPropertyReferences());
    externalVars.addAll(translator.getExternalVariableReferences());
    SourceAst sourceAst = new ClosureJsAst(inputId, root);
    CompilerInput input = new CompilerInput(sourceAst, false);

Examples of com.google.gwt.xml.client.Node

  public Element getRootElement() throws XmlException {

    NodeList nodeList = this.document.getChildNodes();

    for (int i = 0; i < nodeList.getLength(); i++) {
      Node n = nodeList.item(i);
      if (n.getNodeType() == Node.ELEMENT_NODE) {
        Element root = (Element) n;
        return root;
      }
    }

Examples of com.google.gxp.compiler.base.Node

        "<gxp:template xmlns:gxp='http://google.com/2001/gxp'>"
        + "   "
        + "</gxp:template>");
    assertEquals(AlertSet.EMPTY, tree.getAlerts());
    assertEquals(1, tree.getChildren().get(0).getChildren().size());
    Node textNode = tree.getChildren().get(0).getChildren().get(0);
    assertTrue(textNode instanceof TextElement);
    assertEquals("   ", ((TextElement) textNode).getText());
  }

Examples of com.google.javascript.rhino.Node

    compiler.reportCodeChange();
  }

  private void visitDestructuringPatternInCatch(Node pattern) {
    String tempVarName = DESTRUCTURING_TEMP_VAR + (destructuringVarCounter++);
    Node catchBlock = pattern.getNext();

    pattern.getParent().replaceChild(pattern, IR.name(tempVarName));
    catchBlock.addChildToFront(
        IR.declaration(pattern, IR.name(tempVarName), Token.LET));
  }

Examples of com.google.jstestdriver.token.Node

*/
public class HtmlDocNestedNodeTest extends TestCase {
  public void testVariableAssignment() throws Exception {
    String id = " foo";
    String html = "<div>\n'foo'</div>";
    Node node =
        new HtmlDocNestedNode(ConcreteToken.from(id), Lists.newArrayList(ConcreteToken.from(html)));

    StringWriter writer = new StringWriter();
    node.write(writer);
    assertEquals(
            String.format("this.%s = jstestdriver.toHtml('%s',window.document);", id,
                html.replace("\n", "\\n").replace("'", "\\'")) + "\n", writer.toString());
  }

Examples of com.google.refine.rdf.Node

    assertEquals(root.getUriExpression(),"'http://reference.data.gov.uk/id/department/bis/post/' + value");
  }
 
  @Test(groups={"rdf-schema-test"})
  public void testJobTitleLiteral(){
    Node jobTitleNode = getLink(root, "http://www.w3.org/2000/01/rdf-schema#label");
    assertNotNull(jobTitleNode);
    assertTrue(jobTitleNode instanceof CellLiteralNode);
    CellLiteralNode jobTitle = (CellLiteralNode)jobTitleNode;
    //test language
    assertEquals(jobTitle.getLang(),"en");

Examples of com.google.test.metric.cpp.dom.Node

      return operations;
    }

    @Override
    public void visit(AssignmentExpression assignmentExpression) {
      Node leftSide = assignmentExpression.getExpression(0);
      Node rightSide = assignmentExpression.getExpression(1);
      Variable leftVar = null;
      Variable rightVar = null;
      VariableDeclaration leftDeclaration = null;
      if (leftSide instanceof Name) {
        Name leftName = (Name) leftSide;
        leftDeclaration = leftName.lookupVariable(leftName.getIdentifier());
        leftVar = new Variable(leftDeclaration.getName(),
            CppType.fromName(leftDeclaration.getType()), false, false);
      }
      if (rightSide instanceof Name) {
        Name rightName = (Name) rightSide;
        VariableDeclaration declaration = rightName.lookupVariable(
            rightName.getIdentifier());
        rightVar = new Variable(declaration.getName(),
            CppType.fromName(declaration.getType()), false, false);
      }
      if (leftVar != null && rightVar != null) {
        Node leftParent = leftDeclaration.getParent();
        if (leftParent instanceof ClassDeclaration) {
          ClassInfo classInfo = repository.getClass(leftDeclaration.getName());
          Type fieldType = CppType.fromName(leftDeclaration.getType());
          FieldInfo fieldInfo = new FieldInfo(classInfo, leftDeclaration
              .getName(), fieldType, false, false, false);
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.