Package javassist.compiler

Examples of javassist.compiler.CompileError


/*     */     public void doit(JvstCodeGen gen, Bytecode bytecode, ASTList args)
/*     */       throws CompileError
/*     */     {
/* 255 */       int num = gen.getMethodArgsLength(args);
/* 256 */       if (num != this.dimension) {
/* 257 */         throw new CompileError("$proceed() with a wrong number of parameters");
/*     */       }
/*     */
/* 260 */       gen.atMethodArgs(args, new int[num], new int[num], new String[num]);
/*     */
/* 262 */       bytecode.addOpcode(this.opcode);
View Full Code Here


/*     */
/*     */     public void doit(JvstCodeGen gen, Bytecode bytecode, ASTList args)
/*     */       throws CompileError
/*     */     {
/* 147 */       if (gen.getMethodArgsLength(args) != 1) {
/* 148 */         throw new CompileError("$proceed() cannot take more than one parameter for cast");
/*     */       }
/*     */
/* 152 */       gen.atMethodArgs(args, new int[1], new int[1], new String[1]);
/* 153 */       bytecode.addOpcode(192);
/* 154 */       bytecode.addIndex(this.index);
View Full Code Here

/*     */
/*     */     public void doit(JvstCodeGen gen, Bytecode bytecode, ASTList args)
/*     */       throws CompileError
/*     */     {
/* 287 */       if (gen.getMethodArgsLength(args) != 1)
/* 288 */         throw new CompileError("$proceed() cannot take more than one parameter for field writing");
/*     */       int stack;
/*     */       int stack;
/* 293 */       if (FieldAccess.isStatic(this.opcode)) {
/* 294 */         stack = 0;
/*     */       } else {
View Full Code Here

/*     */
/*     */     public void doit(JvstCodeGen gen, Bytecode bytecode, ASTList args)
/*     */       throws CompileError
/*     */     {
/* 239 */       if ((args != null) && (!gen.isParamListName(args)))
/* 240 */         throw new CompileError("$proceed() cannot take a parameter for field reading");
/*     */       int stack;
/*     */       int stack;
/* 244 */       if (FieldAccess.isStatic(this.opcode)) {
/* 245 */         stack = 0;
/*     */       } else {
View Full Code Here

/*     */
/*     */     public void doit(JvstCodeGen gen, Bytecode bytecode, ASTList args)
/*     */       throws CompileError
/*     */     {
/* 151 */       if (gen.getMethodArgsLength(args) != 1) {
/* 152 */         throw new CompileError("$proceed() cannot take more than one parameter for instanceof");
/*     */       }
/*     */
/* 156 */       gen.atMethodArgs(args, new int[1], new int[1], new String[1]);
/* 157 */       bytecode.addOpcode(193);
/* 158 */       bytecode.addIndex(this.index);
View Full Code Here

TOP

Related Classes of javassist.compiler.CompileError

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.