| java.lang.Object javassist.expr.Expr javassist.expr.Instanceof
Instanceof | public class Instanceof extends Expr (Code) | | Instanceof operator.
|
Inner Class :static class ProceedForInstanceof implements ProceedHandler | |
Method Summary | |
public String | getFileName() Returns the source file containing the
instanceof expression. | public int | getLineNumber() Returns the line number of the source line containing the
instanceof expression. | public CtClass | getType() Returns the CtClass object representing
the type name on the right hand side
of the instanceof operator. | public CtClass[] | mayThrow() Returns the list of exceptions that the expression may throw. | public void | replace(String statement) Replaces the instanceof operator with the bytecode derived from
the given source text. | public CtBehavior | where() Returns the method or constructor containing the instanceof
expression represented by this object. |
getFileName | public String getFileName()(Code) | | Returns the source file containing the
instanceof expression.
null if this information is not available. |
getLineNumber | public int getLineNumber()(Code) | | Returns the line number of the source line containing the
instanceof expression.
-1 if this information is not available. |
getType | public CtClass getType() throws NotFoundException(Code) | | Returns the CtClass object representing
the type name on the right hand side
of the instanceof operator.
|
mayThrow | public CtClass[] mayThrow()(Code) | | Returns the list of exceptions that the expression may throw.
This list includes both the exceptions that the try-catch statements
including the expression can catch and the exceptions that
the throws declaration allows the method to throw.
|
replace | public void replace(String statement) throws CannotCompileException(Code) | | Replaces the instanceof operator with the bytecode derived from
the given source text.
$0 is available but the value is null .
Parameters: statement - a Java statement. |
where | public CtBehavior where()(Code) | | Returns the method or constructor containing the instanceof
expression represented by this object.
|
|
|