Package javassist.compiler.ast

Examples of javassist.compiler.ast.Keyword


/*     */
/*     */   public static int getModifiers(ASTList mods)
/*     */   {
/* 532 */     int m = 0;
/* 533 */     while (mods != null) {
/* 534 */       Keyword k = (Keyword)mods.head();
/* 535 */       mods = mods.tail();
/* 536 */       switch (k.get()) {
/*     */       case 335:
/* 538 */         m |= 8;
/* 539 */         break;
/*     */       case 315:
/* 541 */         m |= 16;
View Full Code Here


/*      */
/*      */   public void atMethodDecl(MethodDecl method) throws CompileError {
/*  255 */     ASTList mods = method.getModifiers();
/*  256 */     setMaxLocals(1);
/*  257 */     while (mods != null) {
/*  258 */       Keyword k = (Keyword)mods.head();
/*  259 */       mods = mods.tail();
/*  260 */       if (k.get() == 335) {
/*  261 */         setMaxLocals(0);
/*  262 */         this.inStaticMethod = true;
/*      */       }
/*      */     }
/*      */
View Full Code Here

/*  468 */     if ((value instanceof Number)) {
/*  469 */       int token = (value instanceof Long) ? 403 : 402;
/*  470 */       return new IntConst(((Number)value).longValue(), token);
/*      */     }
/*  472 */     if ((value instanceof Boolean)) {
/*  473 */       return new Keyword(((Boolean)value).booleanValue() ? 410 : 411);
/*      */     }
/*      */
/*  476 */     return null;
/*      */   }
View Full Code Here

/*      */     while (true) {
/*  169 */       int t = this.lex.lookAhead();
/*  170 */       if ((t != 300) && (t != 315) && (t != 332) && (t != 331) && (t != 330) && (t != 338) && (t != 335) && (t != 345) && (t != 342) && (t != 347)) {
/*      */         break;
/*      */       }
/*  173 */       list = new ASTList(new Keyword(this.lex.get()), list);
/*      */     }
/*      */
/*  178 */     return list;
/*      */   }
View Full Code Here

/*      */     case 336:
/*      */     case 339:
/*      */     case 410:
/*      */     case 411:
/*      */     case 412:
/* 1230 */       return new Keyword(t);
/*      */     case 400:
/* 1232 */       String name = this.lex.getString();
/* 1233 */       Declarator decl = tbl.lookup(name);
/* 1234 */       if (decl == null) {
/* 1235 */         return new Member(name);
View Full Code Here

TOP

Related Classes of javassist.compiler.ast.Keyword

Copyright © 2018 www.massapicom. 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.