| Modifier and Type | Field and Description |
|---|---|
| public static final String | |
| public static final String | |
| private CtClass | |
| public static final String | |
| private String | |
| pack-priv String | |
| pack-priv String | |
| pack-priv CtClass[] | |
| private int | |
| pack-priv String | |
| pack-priv ProceedHandler | |
| pack-priv String | |
| pack-priv CtClass | |
| private String | |
| public static final String | |
| private boolean | |
| public static final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| protected void | |
| public void | |
| public void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | atFieldAssign(Expr expr, int op, ASTree left, ASTree right, boolean doDup)
Overrides javassist.
|
| public void | |
| public void | atMethodArgs(ASTList args, int[] types, int[] dims, String[] cnames)
Overrides javassist.
|
| protected void | |
| private void | |
| pack-priv void | |
| public static int | |
| protected void | |
| public void | |
| public int | |
| private int | |
| public boolean | |
| private static void | |
| public int | recordParams(CtClass[] params, boolean isStatic, String prefix, String paramVarName, String paramsName, SymbolTable tbl)
Makes method parameters $0, $1, ..., $args, $$, and $class available. |
| public int | recordParams(CtClass[]
the parameter types (the types of $1, $2, ..) params, boolean true if the method in which the compiled bytecode
is embedded is static. isStatic, String it must be "$" (the first letter of $0, $1, ...) prefix, String it must be "$args" paramVarName, String it must be "$$" paramsName, boolean true if $0 is used. use0, int the register number of $0 (use0 is true)
or $1 (otherwise). paramBase, String the class of $0. If use0 is false, target
can be null. The value of "target" is also used
as the name of the type represented by $class. target, SymbolTable tbl)Makes method parameters $0, $1, ..., $args, $$, and $class available. |
| public int | Returns: -1 or the variable index assigned to $_.null if $_ is not used. resultName, SymbolTable tbl)Makes a cast to the return type ($r) available. |
| public void | |
| private int | |
| public int | recordVariable(CtClass
variable type type, String variable name varName, SymbolTable tbl)Makes the given variable name available. |
| public void | recordVariable(String
the type descriptor of the variable typeDesc, String variable name varName, int an index into the local variable array varNo, SymbolTable tbl)Makes the given variable name available. |
| public void | |
| public void | |
| private void |
| cflowName | back to summary |
|---|---|
| public static final String cflowName | |
| clazzName | back to summary |
|---|---|
| public static final String clazzName | |
| dollarType | back to summary |
|---|---|
| private CtClass dollarType | |
| dollarTypeName | back to summary |
|---|---|
| public static final String dollarTypeName | |
| param0Type | back to summary |
|---|---|
| private String param0Type | |
| paramArrayName | back to summary |
|---|---|
| pack-priv String paramArrayName | |
| paramListName | back to summary |
|---|---|
| pack-priv String paramListName | |
| paramTypeList | back to summary |
|---|---|
| pack-priv CtClass[] paramTypeList | |
| paramVarBase | back to summary |
|---|---|
| private int paramVarBase | |
| proceedName | back to summary |
|---|---|
| pack-priv String proceedName | |
| procHandler | back to summary |
|---|---|
| pack-priv ProceedHandler procHandler | |
| returnCastName | back to summary |
|---|---|
| pack-priv String returnCastName | |
| returnType | back to summary |
|---|---|
| pack-priv CtClass returnType | |
| returnVarName | back to summary |
|---|---|
private String returnVarName
| |
| sigName | back to summary |
|---|---|
| public static final String sigName | |
| useParam0 | back to summary |
|---|---|
| private boolean useParam0 | |
| wrapperCastName | back to summary |
|---|---|
| public static final String wrapperCastName | |
| JvstCodeGen | back to summary |
|---|---|
| public JvstCodeGen(Bytecode b, CtClass cc, ClassPool cp) | |
| addNullIfVoid | back to summary |
|---|---|
| public void addNullIfVoid() | |
| atAssignParamList | back to summary |
|---|---|
| protected void atAssignParamList(CtClass[] params, Bytecode code) throws CompileError | |
| atCallExpr | back to summary |
|---|---|
| public void atCallExpr(CallExpr expr) throws CompileError Overrides javassist.
| |
| atCastExpr | back to summary |
|---|---|
| public void atCastExpr(CastExpr expr) throws CompileError Overrides javassist.
| |
| atCastToRtype | back to summary |
|---|---|
| protected void atCastToRtype(CastExpr expr) throws CompileError Inserts a cast operator to the return type. If the return type is void, this does nothing. | |
| atCastToWrapper | back to summary |
|---|---|
| protected void atCastToWrapper(CastExpr expr) throws CompileError | |
| atCflow | back to summary |
|---|---|
| protected void atCflow(ASTList cname) throws CompileError | |
| atFieldAssign | back to summary |
|---|---|
| protected void atFieldAssign(Expr expr, int op, ASTree left, ASTree right, boolean doDup) throws CompileError Overrides javassist.
| |
| atMember | back to summary |
|---|---|
| public void atMember(Member mem) throws CompileError Overrides javassist.
| |
| atMethodArgs | back to summary |
|---|---|
| public void atMethodArgs(ASTList args, int[] types, int[] dims, String[] cnames) throws CompileError Overrides javassist.
| |
| atReturnStmnt | back to summary |
|---|---|
| protected void atReturnStmnt(Stmnt st) throws CompileError Overrides javassist.
| |
| callGetType | back to summary |
|---|---|
| private void callGetType(String method) | |
| compileInvokeSpecial | back to summary |
|---|---|
| pack-priv void compileInvokeSpecial(ASTree target, int methodIndex, String descriptor, ASTList args) throws CompileError | |
| compileParameterList | back to summary |
|---|---|
| public static int compileParameterList(Bytecode code, CtClass[] params, int regno) | |
| compileUnwrapValue | back to summary |
|---|---|
| protected void compileUnwrapValue(CtClass type, Bytecode code) throws CompileError | |
| doNumCast | back to summary |
|---|---|
| public void doNumCast(CtClass type) throws CompileError | |
| getMethodArgsLength | back to summary |
|---|---|
| public int getMethodArgsLength(ASTList args) Overrides javassist.
| |
| indexOfParam1 | back to summary |
|---|---|
| private int indexOfParam1() | |
| isParamListName | back to summary |
|---|---|
| public boolean isParamListName(ASTList args) | |
| makeCflowName | back to summary |
|---|---|
| private static void makeCflowName(StringBuilder sbuf, ASTree name) throws CompileError | |
| recordParams | back to summary |
|---|---|
| public int recordParams(CtClass[] params, boolean isStatic, String prefix, String paramVarName, String paramsName, SymbolTable tbl) throws CompileError Makes method parameters $0, $1, ..., $args, $$, and $class available. $0 is equivalent to THIS if the method is not static. Otherwise, if the method is static, then $0 is not available. | |
| recordParams | back to summary |
|---|---|
| public int recordParams(CtClass[] params, boolean isStatic, String prefix, String paramVarName, String paramsName, boolean use0, int paramBase, String target, SymbolTable tbl) throws CompileError Makes method parameters $0, $1, ..., $args, $$, and $class available. $0 is available only if use0 is true. It might not be equivalent to THIS.
| |
| recordReturnType | back to summary |
|---|---|
| public int recordReturnType(CtClass type, String castName, String resultName, SymbolTable tbl) throws CompileError Makes a cast to the return type ($r) available. It also enables $_. If the return type is void, ($r) does nothing. The type of $_ is java.lang.Object.
| |
| recordType | back to summary |
|---|---|
| public void recordType(CtClass t) Makes $type available. | |
| recordVar | back to summary |
|---|---|
| private int recordVar(CtClass cc, String varName, int varNo, SymbolTable tbl) throws CompileError | |
| recordVariable | back to summary |
|---|---|
| public int recordVariable(CtClass type, String varName, SymbolTable tbl) throws CompileError Makes the given variable name available. | |
| recordVariable | back to summary |
|---|---|
| public void recordVariable(String typeDesc, String varName, int varNo, SymbolTable tbl) throws CompileError Makes the given variable name available. | |
| setProceedHandler | back to summary |
|---|---|
| public void setProceedHandler(ProceedHandler h, String name) | |
| setType | back to summary |
|---|---|
| public void setType(CtClass type) throws CompileError | |
| setType | back to summary |
|---|---|
| private void setType(CtClass type, int dim) throws CompileError | |