Package javassist.compiler

Source Code of javassist.compiler.SymbolTable

/*    */ package javassist.compiler;
/*    */
/*    */ import java.util.HashMap;
/*    */ import javassist.compiler.ast.Declarator;
/*    */
/*    */ public final class SymbolTable extends HashMap
/*    */ {
/*    */   private SymbolTable parent;
/*    */
/*    */   public SymbolTable()
/*    */   {
/* 24 */     this(null);
/*    */   }
/*    */
/*    */   public SymbolTable(SymbolTable p) {
/* 28 */     this.parent = p;
/*    */   }
/*    */   public SymbolTable getParent() {
/* 31 */     return this.parent;
/*    */   }
/*    */   public Declarator lookup(String name) {
/* 34 */     Declarator found = (Declarator)get(name);
/* 35 */     if ((found == null) && (this.parent != null)) {
/* 36 */       return this.parent.lookup(name);
/*    */     }
/* 38 */     return found;
/*    */   }
/*    */
/*    */   public void append(String name, Declarator value) {
/* 42 */     put(name, value);
/*    */   }
/*    */ }

/* Location:           /home/mnovotny/projects/EMBEDDED_JBOSS_BETA3_COMMUNITY/embedded/output/lib/embedded-jboss/lib/thirdparty-all.jar
* Qualified Name:     javassist.compiler.SymbolTable
* JD-Core Version:    0.6.0
*/
TOP

Related Classes of javassist.compiler.SymbolTable

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.