|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavassist.compiler.ast.Visitor
javassist.compiler.TypeChecker
javassist.compiler.JvstTypeChecker
public class JvstTypeChecker
| Field Summary |
|---|
| Fields inherited from class javassist.compiler.TypeChecker |
|---|
arrayDim, className, exprType, resolver, thisClass, thisMethod |
| Fields inherited from interface 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 | |
|---|---|
JvstTypeChecker(CtClass cc,
ClassPool cp,
JvstCodeGen gen)
|
|
| Method Summary | |
|---|---|
void |
addNullIfVoid()
|
void |
atCallExpr(CallExpr expr)
|
void |
atCastExpr(CastExpr expr)
|
protected void |
atCastToRtype(CastExpr expr)
Inserts a cast operator to the return type. |
protected void |
atCastToWrapper(CastExpr expr)
|
protected void |
atCflow(ASTList cname)
|
protected void |
atFieldAssign(Expr expr,
int op,
ASTree left,
ASTree right)
|
void |
atMember(Member mem)
|
void |
atMethodArgs(ASTList args,
int[] types,
int[] dims,
String[] cnames)
|
protected void |
compileUnwrapValue(CtClass type)
|
int |
getMethodArgsLength(ASTList args)
|
boolean |
isParamListName(ASTList args)
|
void |
setType(CtClass type)
|
| Methods inherited from class javassist.compiler.TypeChecker |
|---|
argTypesToString, atArrayInit, atArrayLength, atArrayRead, atAssignExpr, atBinExpr, atClassObject, atCondExpr, atDoubleConst, atExpr, atFieldPlusPlus, atInstanceOfExpr, atIntConst, atKeyword, atMethodCallCore, atMultiNewArray, atNewArrayExpr, atNewExpr, atStringL, atVariable, fatal, fieldAccess, getConstantFieldValue, getSuperName, getThisName, resolveClassName, resolveClassName, setThisMethod, typeToString |
| Methods inherited from class javassist.compiler.ast.Visitor |
|---|
atASTList, atDeclarator, atFieldDecl, atMethodDecl, atPair, atStmnt, atSymbol |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JvstTypeChecker(CtClass cc,
ClassPool cp,
JvstCodeGen gen)
| Method Detail |
|---|
public void addNullIfVoid()
public void atMember(Member mem)
throws CompileError
atMember in class TypeCheckerCompileError
protected void atFieldAssign(Expr expr,
int op,
ASTree left,
ASTree right)
throws CompileError
atFieldAssign in class TypeCheckerCompileError
public void atCastExpr(CastExpr expr)
throws CompileError
atCastExpr in class TypeCheckerCompileError
protected void atCastToRtype(CastExpr expr)
throws CompileError
CompileError
protected void atCastToWrapper(CastExpr expr)
throws CompileError
CompileError
public void atCallExpr(CallExpr expr)
throws CompileError
atCallExpr in class TypeCheckerCompileError
protected void atCflow(ASTList cname)
throws CompileError
CompileErrorpublic boolean isParamListName(ASTList args)
public int getMethodArgsLength(ASTList args)
getMethodArgsLength in class TypeChecker
public void atMethodArgs(ASTList args,
int[] types,
int[] dims,
String[] cnames)
throws CompileError
atMethodArgs in class TypeCheckerCompileError
protected void compileUnwrapValue(CtClass type)
throws CompileError
CompileError
public void setType(CtClass type)
throws CompileError
CompileError
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||