KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > ruby > elements > AstRootElement


1 package org.netbeans.modules.ruby.elements;
2
3 import org.jruby.ast.Node;
4 import org.jruby.parser.RubyParserResult;
5 import org.openide.filesystems.FileObject;
6
7
8 public class AstRootElement extends AstElement {
9     private FileObject fileObject;
10     private RubyParserResult result;
11
12     public AstRootElement(FileObject fo, Node node, RubyParserResult result) {
13         super(node);
14
15         this.fileObject = fo;
16         this.result = result;
17     }
18
19     public RubyParserResult getRubyParserResult() {
20         return result;
21     }
22
23     @Override JavaDoc
24     public String JavaDoc getName() {
25         return fileObject.getNameExt();
26     }
27 }
Popular Tags