JBoss Reflection 2.2.1.SP1

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

All Superinterfaces:
Expression
All Known Subinterfaces:
ConstructorCall

public interface MethodCall
extends Expression

A method call expression.

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

Method Summary
 String getClassName()
          Returns the class name of the target object, which the method is called on.
 MutableMethodInfo getMethod()
          Returns the called method.
 String getMethodName()
          Returns the name of the called method.
 String getSignatue()
          Returns the method signature.
 boolean isSuper()
          Indicates whether the called method is of a superclass of the current class.
 void replace(String statement)
          Replaces the method call 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 target object, which the method is called on.

Returns:
the name of the target class

getMethodName

String getMethodName()
Returns the name of the called method.

Returns:
the name of the method being called

getMethod

MutableMethodInfo getMethod()
                            throws NotFoundException
Returns the called method.

Returns:
the method being called
Throws:
NotFoundException

getSignatue

String getSignatue()
Returns the method signature.

Returns:
the signature of the method being called

isSuper

boolean isSuper()
Indicates whether the called method is of a superclass of the current class.

Returns:
returns true if the target class is a super class of the current class

replace

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