1 16 package com.google.gwt.dev.jjs.ast; 17 18 import com.google.gwt.dev.jjs.SourceInfo; 19 20 23 public abstract class JVariable extends JNode implements CanBeFinal, HasName, 24 HasType, HasSettableType { 25 26 private boolean isFinal; 27 private final String name; 28 private JType type; 29 30 JVariable(JProgram program, SourceInfo info, String name, JType type, 31 boolean isFinal) { 32 super(program, info); 33 this.name = name; 34 this.type = type; 35 this.isFinal = isFinal; 36 } 37 38 public String getName() { 39 return name; 40 } 41 42 public JType getType() { 43 return type; 44 } 45 46 public boolean isFinal() { 47 return isFinal; 48 } 49 50 public void setType(JType newType) { 51 type = newType; 52 } 53 54 } 55 | Popular Tags |