1 16 package com.google.gwt.dev.jjs.ast; 17 18 import com.google.gwt.dev.jjs.SourceInfo; 19 20 23 public class JLocal extends JVariable implements HasEnclosingMethod { 24 25 private final JMethod enclosingMethod; 26 27 JLocal(JProgram program, SourceInfo info, String name, JType type, 28 boolean isFinal, JMethod enclosingMethod) { 29 super(program, info, name, type, isFinal); 30 this.enclosingMethod = enclosingMethod; 31 } 32 33 public JMethod getEnclosingMethod() { 34 return enclosingMethod; 35 } 36 37 public void traverse(JVisitor visitor, Context ctx) { 38 if (visitor.visit(this, ctx)) { 39 } 40 visitor.endVisit(this, ctx); 41 } 42 43 } 44 | Popular Tags |