3 public class VarDescriptor extends Descriptor {
5 private static int count = 0;
6 boolean isglobal=false;
8 TypeDescriptor td = null;
10 SetDescriptor sd=null;
15 public void setBounds(Expr l,Expr u) {
20 public Expr getLower() {
24 public Expr getUpper() {
28 public SetDescriptor getSet() {
32 public void setSet(SetDescriptor sd) {
36 public VarDescriptor(String name) {
40 public VarDescriptor(String name, TypeDescriptor td) {
45 public VarDescriptor(String name, String safename, TypeDescriptor td, boolean global) {
46 super(name, safename);
51 public boolean isGlobal() {
55 public void setType(TypeDescriptor td) {
59 public TypeDescriptor getType() {
63 public static VarDescriptor makeNew() {
64 return makeNew("tempvar");
67 public static VarDescriptor makeNew(String name) {
68 return new VarDescriptor(name + count++);