javassist.expr
public class Cast extends Expr
Method Summary | |
---|---|
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.
|
CtClass | getType()
Returns the CtClass object representing
the type specified by the cast. |
CtClass[] | mayThrow()
Returns the list of exceptions that the expression may throw.
|
void | replace(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. |
Returns: null if this information is not available.
Returns: -1 if this information is not available.
CtClass
object representing
the type specified by the cast.$0 is available but the value is null
.
Parameters: statement a Java statement.