JBoss Reflection 2.2.1.SP1

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

All Superinterfaces:
Expression

public interface Cast
extends Expression


Method Summary
 MutableClassInfo getType()
          Returns the class representing the type specified by the cast.
 void replace(String statement)
          Replaces the explicit cast 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 class representing the type specified by the cast.

Returns:
the mutable class info representing this cast
Throws:
NotFoundException - if the requested class info cannot be found

replace

void replace(String statement)
             throws CannotCompileException
Replaces the explicit cast operator with the bytecode derived from the given source text.

Specified by:
replace in interface Expression
Throws:
CannotCompileException

JBoss Reflection 2.2.1.SP1

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