Package org.bladerunnerjs.model.engine

Examples of org.bladerunnerjs.model.engine.Node.parentNode()


    TestRootNode rootNode = new TestRootNode(new File(TEST_DIR, "brjs-root-node"));
    Node childNode1 = rootNode.childNode("1");
   
    assertSame(childNode1, rootNode.childNode("1"));
    assertSame(childNode1, rootNode.locateAncestorNodeOfClass(rootNode.childNode("1").grandChildNode("2").dir(), TestChildNode.class));
    assertNotSame(childNode1, new TestChildNode(rootNode, childNode1.parentNode(), childNode1.dir(), "1"));
  }
 
  @Test
  public void cachedNonExistentItemsWillLaterBeUsedIfTheItemSubsequentlyComesIntoExistence() throws Exception
  {
View Full Code Here


      if(node instanceof BundlableNode)
      {
        bundlableNode = (BundlableNode) node;
      }
     
      node = node.parentNode();
    }
   
    if (bundlableNode == null) throw new InvalidBundlableNodeException( RelativePathUtility.get(getFileInfoAccessor(), dir(), file) );
   
    return bundlableNode;
View Full Code Here

  @Override
  public App app() {
    Node node = this.parentNode();
   
    while(!(node instanceof App) && node != null) {
      node = node.parentNode();
    }
   
    if (node == null) {
      AssetContainer assetContainer = root().locateAncestorNodeOfClass(dir().getParentFile(), AssetContainer.class);
      if (assetContainer != null) {
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.