JBoss Reflection 2.2.1.SP1

org.jboss.reflect.plugins.javassist.expr
Interface Instanceof

All Superinterfaces:
Expression

public interface Instanceof
extends Expression

An instanceof expression

Version:
$Revision: 1.1 $
Author:
Stale W. Pedersen

Method Summary
 MutableClassInfo getType()
          Returns the CtClass object representing the type name on the right hand side of the instanceof operator.
 void replace(String statement)
          Replaces the instanceof operator with the bytecode derived from the given source text.
 
Methods inherited from interface org.jboss.reflect.plugins.javassist.expr.Expression
getFileName, getLineNumber, indexOfBytecode, mayThrow, replace, whereConstructor, whereMethod
 

Method Detail

getType

MutableClassInfo getType()
                         throws NotFoundException
Returns the CtClass object representing the type name on the right hand side of the instanceof operator.

Returns:
the type that is being tested by this instanceof expression
Throws:
NotFoundException

replace

void replace(String statement)
             throws NotFoundException
Replaces the instanceof operator with the bytecode derived from the given source text.

Specified by:
replace in interface Expression
Throws:
NotFoundException

JBoss Reflection 2.2.1.SP1

Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.