|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectclassUtils.javassist.expr.Expr
classUtils.javassist.expr.Cast
public class Cast
Explicit type cast.
Field Summary |
---|
Method Summary | |
---|---|
java.lang.String |
getFileName()
Returns the source file containing the type-cast expression. |
int |
getLineNumber()
Returns the line number of the source line containing the type-cast expression. |
CompileTimeClass |
getType()
Returns the CtClass object representing
the type specified by the cast. |
CompileTimeClass[] |
mayThrow()
Returns the list of exceptions that the expression may throw. |
void |
replace(java.lang.String statement)
Replaces the explicit cast operator with the bytecode derived from the given source text. |
CtBehavior |
where()
Returns the method or constructor containing the type cast expression represented by this object. |
Methods inherited from class classUtils.javassist.expr.Expr |
---|
indexOfBytecode |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public CtBehavior where()
where
in class Expr
public int getLineNumber()
getLineNumber
in class Expr
public java.lang.String getFileName()
getFileName
in class Expr
public CompileTimeClass getType() throws NotFoundException
CtClass
object representing
the type specified by the cast.
NotFoundException
public CompileTimeClass[] mayThrow()
mayThrow
in class Expr
public void replace(java.lang.String statement) throws CannotCompileException
$0 is available but the value is null
.
statement
- a Java statement.
CannotCompileException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |