KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.netbeans.modules.ruby.elements;
2
3 import org.jruby.ast.ConstDeclNode;
4 import org.netbeans.api.gsf.ElementKind;
5
6
7 public class AstConstantElement extends AstElement {
8     ConstDeclNode constNode;
9     
10     public AstConstantElement(ConstDeclNode node) {
11         super(node);
12         this.constNode = node;
13     }
14
15     @Override JavaDoc
16     public String JavaDoc getName() {
17         return constNode.getName();
18     }
19     
20     @Override JavaDoc
21     public ElementKind getKind() {
22         return ElementKind.CONSTANT;
23     }
24 }
25
Popular Tags