|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectclassUtils.javassist.compiler.ast.Visitor
classUtils.javassist.compiler.CodeGen
classUtils.javassist.compiler.MemberCodeGen
public class MemberCodeGen
Field Summary |
---|
Fields inherited from class classUtils.javassist.compiler.CodeGen |
---|
inStaticMethod |
Fields inherited from interface classUtils.javassist.compiler.TokenId |
---|
ABSTRACT, AND_E, ANDAND, ARRAY, ARSHIFT, ARSHIFT_E, assignOps, BadToken, BLOCK, BOOLEAN, BREAK, BYTE, CALL, CASE, CATCH, CHAR, CharConstant, CLASS, CONST, CONTINUE, DECL, DEFAULT, DIV_E, DO, DOUBLE, DoubleConstant, ELSE, EQ, EXOR_E, EXPR, EXTENDS, FALSE, FINAL, FINALLY, FLOAT, FloatConstant, FOR, GE, GOTO, Identifier, IF, IMPLEMENTS, IMPORT, INSTANCEOF, INT, IntConstant, INTERFACE, LABEL, LE, LONG, LongConstant, LSHIFT, LSHIFT_E, MEMBER, MINUS_E, MINUSMINUS, MOD_E, MUL_E, NATIVE, NEQ, NEW, NULL, opNames, OR_E, OROR, PACKAGE, PLUS_E, PLUSPLUS, PRIVATE, PROTECTED, PUBLIC, RETURN, RSHIFT, RSHIFT_E, SHORT, STATIC, STRICT, StringL, SUPER, SWITCH, SYNCHRONIZED, THIS, THROW, THROWS, TRANSIENT, TRUE, TRY, VOID, VOLATILE, WHILE |
Constructor Summary | |
---|---|
MemberCodeGen(Bytecode b,
CompileTimeClass cc,
ClassPool cp)
|
Method Summary | |
---|---|
void |
atMember(Member mem)
|
void |
atMethodArgs(ASTList args,
int[] types,
int[] dims,
java.lang.String[] cnames)
|
int |
atMethodArgsLength(ASTList args)
|
void |
atMethodCall2(CompileTimeClass targetClass,
java.lang.String mname,
ASTList args,
boolean isStatic,
boolean isSpecial)
|
void |
atNewArrayExpr(NewExpr expr)
|
void |
atNewExpr(NewExpr expr)
|
static int |
getModifiers(ASTList mods)
|
CompileTimeClass |
getThisClass()
|
CtField |
lookupField(ASTList className,
Symbol fieldName)
|
CtField |
lookupField(java.lang.String className,
Symbol fieldName)
|
CompileTimeClass[] |
makeParamList(MethodDecl md)
|
CompileTimeClass[] |
makeThrowsList(MethodDecl md)
|
void |
setThisMethod(CtMethod m)
Records the currently compiled method. |
Methods inherited from class classUtils.javassist.compiler.CodeGen |
---|
atArrayLength, atArrayPlusPlus, atArrayRead, atAssignExpr, atASTList, atBinExpr, atCastExpr, atClassObject, atCondExpr, atDeclarator, atDoubleConst, atExpr, atFieldDecl, atInstanceOfExpr, atIntConst, atKeyword, atMethodBody, atMethodDecl, atPair, atStmnt, atStringL, atSymbol, atVariable, getMaxLocals, is2word, setMaxLocals |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MemberCodeGen(Bytecode b, CompileTimeClass cc, ClassPool cp)
Method Detail |
---|
public void setThisMethod(CtMethod m)
public CompileTimeClass getThisClass()
public void atNewExpr(NewExpr expr) throws CompileError
atNewExpr
in class CodeGen
CompileError
public void atNewArrayExpr(NewExpr expr) throws CompileError
CompileError
public void atMethodCall2(CompileTimeClass targetClass, java.lang.String mname, ASTList args, boolean isStatic, boolean isSpecial) throws CompileError
CompileError
public int atMethodArgsLength(ASTList args)
public void atMethodArgs(ASTList args, int[] types, int[] dims, java.lang.String[] cnames) throws CompileError
CompileError
public void atMember(Member mem) throws CompileError
atMember
in class CodeGen
CompileError
public CompileTimeClass[] makeParamList(MethodDecl md) throws CompileError
CompileError
public CompileTimeClass[] makeThrowsList(MethodDecl md) throws CompileError
CompileError
public static int getModifiers(ASTList mods)
public CtField lookupField(ASTList className, Symbol fieldName) throws CompileError
CompileError
public CtField lookupField(java.lang.String className, Symbol fieldName) throws CompileError
CompileError
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |