1 package org.netbeans.modules.ruby.elements; 2 3 import java.util.Collections ; 4 import java.util.Set ; 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 19 public String getName() { 20 return symbolNode.getName(); 21 } 22 23 public Set <Modifier> getModifiers() { 24 return Collections.emptySet(); 26 } 27 28 @Override 29 public ElementKind getKind() { 30 return ElementKind.ATTRIBUTE; 31 } 32 } 33 | Popular Tags |