Package abstrasy

Examples of abstrasy.Node$ParseBag


  }

  public Node external_is_exists(Node startAt) throws Exception {
    startAt.isGoodArgsLength(true, 2);
    File f = new File(startAt.getSubNode(1, Node.TYPE_STRING).getString());
    return new Node(f.exists() ? Node.TRUE: Node.FALSE);
  }
View Full Code Here


  }

  public Node external_is_can_read(Node startAt) throws Exception {
    startAt.isGoodArgsLength(true, 2);
    File f = new File(startAt.getSubNode(1, Node.TYPE_STRING).getString());
        return new Node(f.canRead() ? Node.TRUE: Node.FALSE);
  }
View Full Code Here

  }

  public Node external_is_can_write(Node startAt) throws Exception {
    startAt.isGoodArgsLength(true, 2);
    File f = new File(startAt.getSubNode(1, Node.TYPE_STRING).getString());
        return new Node(f.canWrite() ? Node.TRUE: Node.FALSE);
  }
View Full Code Here

  }

  public Node external_is_file(Node startAt) throws Exception {
    startAt.isGoodArgsLength(true, 2);
    File f = new File(startAt.getSubNode(1, Node.TYPE_STRING).getString());
        return new Node(f.isFile() ? Node.TRUE: Node.FALSE);
  }
View Full Code Here

  }

  public Node external_is_directory(Node startAt) throws Exception {
    startAt.isGoodArgsLength(true, 2);
    File f = new File(startAt.getSubNode(1, Node.TYPE_STRING).getString());
        return new Node(f.isDirectory() ? Node.TRUE: Node.FALSE);
  }
View Full Code Here

  }

    public Node external_is_link(Node startAt) throws Exception {
    startAt.isGoodArgsLength(true, 2);
    File f = new File(startAt.getSubNode(1, Node.TYPE_STRING).getString());
    return new Node(isLink(f) ? Node.TRUE: Node.FALSE);
  }
View Full Code Here

  }
   
  public Node external_is_hidden(Node startAt) throws Exception {
    startAt.isGoodArgsLength(true, 2);
    File f = new File(startAt.getSubNode(1, Node.TYPE_STRING).getString());
        return new Node(f.isHidden() ? Node.TRUE: Node.FALSE);
  }
View Full Code Here

  }

  public Node external_file_size(Node startAt) throws Exception {
    startAt.isGoodArgsLength(true, 2);
    File f = new File(startAt.getSubNode(1, Node.TYPE_STRING).getString());
    return new Node(f.length());
  }
View Full Code Here

  }

  public Node external_last_modified(Node startAt) throws Exception {
    startAt.isGoodArgsLength(true, 2);
    File f = new File(startAt.getSubNode(1, Node.TYPE_STRING).getString());
    return new Node(f.lastModified());
  }
View Full Code Here

  }

  public Node external_file_name(Node startAt) throws Exception {
    startAt.isGoodArgsLength(true, 2);
    File f = new File(startAt.getSubNode(1, Node.TYPE_STRING).getString());
    return new Node(f.getName());
  }
View Full Code Here

TOP

Related Classes of abstrasy.Node$ParseBag

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.