KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.netbeans.modules.ruby.elements;
2
3 import java.util.Collections JavaDoc;
4 import java.util.Set JavaDoc;
5 import org.jruby.ast.SymbolNode;
6 import org.netbeans.api.gsf.ElementKind;
7 import org.netbeans.api.gsf.Modifier;
8
9
10 public class AstAttributeElement extends AstElement {
11     SymbolNode symbolNode;
12     
13     public AstAttributeElement(SymbolNode node) {
14         super(node);
15         this.symbolNode = node;
16     }
17
18     @Override JavaDoc
19     public String JavaDoc getName() {
20         return symbolNode.getName();
21     }
22     
23     public Set JavaDoc<Modifier> getModifiers() {
24         // TODO compute!
25
return Collections.emptySet();
26     }
27
28     @Override JavaDoc
29     public ElementKind getKind() {
30         return ElementKind.ATTRIBUTE;
31     }
32 }
33
Popular Tags