JBoss Reflection 2.2.1.SP1

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

All Superinterfaces:
Expression

public interface NewExpression
extends Expression


Method Summary
 String getClassName()
          Returns the class name of the created object.
 MutableConstructorInfo getConstructor()
          Returns the constructor called for creating the object.
 String getSignature()
          Returns the signature of the constructor.
 void replace(String statement)
          Replaces the new expression 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

getClassName

String getClassName()
Returns the class name of the created object.

Returns:
the name of the target class

getSignature

String getSignature()
Returns the signature of the constructor.

Returns:
the signature of the constructor being called

getConstructor

MutableConstructorInfo getConstructor()
                                      throws NotFoundException
Returns the constructor called for creating the object.

Returns:
the constructor that is called by this expression
Throws:
NotFoundException

replace

void replace(String statement)
             throws CannotCompileException
Replaces the new expression 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.