1 21 package oracle.toplink.essentials.internal.parsing; 23 24 32 public abstract class IdentificationVariableDeclNode extends Node { 33 34 35 private String name; 36 37 38 private String canonicalName; 39 40 41 public String getVariableName() { 42 return name; 43 } 44 45 46 public void setVariableName(String name) { 47 this.name = name; 48 this.canonicalName = calculateCanonicalName(name); 49 } 50 51 52 public String getCanonicalVariableName() { 53 return canonicalName; 54 } 55 56 57 public static String calculateCanonicalName(String name) { 58 return name.toLowerCase(); 59 } 60 61 62 public Node getPath() { 63 return null; 64 } 65 66 70 public void validate(ParseTreeContext context) { 71 context.setScopeOfVariable(canonicalName); 72 } 73 74 } 75 | Popular Tags |