JBoss Reflection 2.2.1.SP1

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

All Known Subinterfaces:
Cast, ConstructorCall, FieldAccess, Handler, Instanceof, MethodCall, NewArray, NewExpression

public interface Expression

An Expression.

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

Method Summary
 String getFileName()
          Returns the name of source file that contains this expression.
 int getLineNumber()
          Returns the line number of the source file containing this expression.
 int indexOfBytecode()
          FIXME Comment this
 MutableClassInfo[] mayThrow()
          Returns a list of the exception types that this expression execution may throw.
 void replace(String statement)
           
 void replace(String statement, ExpressionEditor recursive)
           
 MutableConstructorInfo whereConstructor()
          Returns the constructor containing the expression represented by this object.
 MutableMethodInfo whereMethod()
          Returns the method containing the expression represented by this object.
 

Method Detail

whereMethod

MutableMethodInfo whereMethod()
Returns the method containing the expression represented by this object.

Returns:
the method that contains this expression

whereConstructor

MutableConstructorInfo whereConstructor()
Returns the constructor containing the expression represented by this object.

Returns:
the constructors that contains this expression

mayThrow

MutableClassInfo[] mayThrow()
Returns a list of the exception types that this expression execution may throw.

Returns:
a list of the exceptions that this expression may throw

indexOfBytecode

int indexOfBytecode()
FIXME Comment this

Returns:
the index of bytecode

getLineNumber

int getLineNumber()
Returns the line number of the source file containing this expression.

Returns:
the line number of this expression

getFileName

String getFileName()
Returns the name of source file that contains this expression.

Returns:
the name of the file containing this expression

replace

void replace(String statement)
             throws CannotCompileException
Throws:
CannotCompileException

replace

void replace(String statement,
             ExpressionEditor recursive)
             throws CannotCompileException
Throws:
CannotCompileException

JBoss Reflection 2.2.1.SP1

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