1 24 25 package org.aspectj.compiler.crosscuts.ast; 26 import org.aspectj.compiler.base.ast.*; 27 import org.aspectj.compiler.crosscuts.joinpoints.*; 28 29 import org.aspectj.compiler.base.JavaCompiler; 30 31 import java.util.*; 32 import org.aspectj.util.InvertableSet; 33 34 35 39 public class SimpleName extends NamePattern { 40 public String getLookupString() { 41 return value; 42 } 43 44 public boolean matches(String s) { 45 return value.equals(s); 46 } 47 48 public String toShortString() { 49 return value; 50 } 51 52 public String getSimpleName() { 53 return value; 54 } 55 56 protected String value; 58 public String getValue() { return value; } 59 public void setValue(String _value) { value = _value; } 60 61 public SimpleName(SourceLocation location, String _value) { 62 super(location); 63 setValue(_value); 64 } 65 protected SimpleName(SourceLocation source) { 66 super(source); 67 } 68 69 public ASTObject copyWalk(CopyWalker walker) { 70 SimpleName ret = new SimpleName(getSourceLocation()); 71 ret.preCopy(walker, this); 72 ret.value = value; 73 return ret; 74 } 75 76 77 public String getDefaultDisplayName() { 78 return "SimpleName(value: "+value+")"; 79 } 80 81 } 83 84 85 86 | Popular Tags |