JBoss Reflection 2.2.1.SP1

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


public interface ExpressionEditor

A ExpressionEditor, a translator of method bodies.

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

Method Summary
 void edit(Cast c)
          Edits an expression for explicit type casting (overridable).
 void edit(ConstructorCall c)
          Edits a constructor call (overridable).
 void edit(FieldAccess f)
          Edits a field-access expression (overridable).
 void edit(Handler h)
          Edits a catch clause (overridable).
 void edit(Instanceof i)
          Edits an instanceof expression (overridable).
 void edit(MethodCall m)
          Edits a method call (overridable).
 void edit(NewArray a)
          Edits an expression for array creation (overridable).
 void edit(NewExpression e)
          Edits a new expression (overridable).
 

Method Detail

edit

void edit(NewExpression e)
          throws CannotCompileException
Edits a new expression (overridable). The default implementation performs nothing.

Parameters:
e -
Throws:
CannotCompileException

edit

void edit(NewArray a)
          throws CannotCompileException
Edits an expression for array creation (overridable). The default implementation performs nothing.

Parameters:
a -
Throws:
CannotCompileException

edit

void edit(MethodCall m)
          throws CannotCompileException
Edits a method call (overridable).

Parameters:
m -
Throws:
CannotCompileException

edit

void edit(ConstructorCall c)
          throws CannotCompileException
Edits a constructor call (overridable). The constructor call is either super() or this() included in a constructor body.

Parameters:
c -
Throws:
CannotCompileException

edit

void edit(FieldAccess f)
          throws CannotCompileException
Edits a field-access expression (overridable). Field access means both read and write.

Parameters:
f -
Throws:
CannotCompileException

edit

void edit(Instanceof i)
          throws CannotCompileException
Edits an instanceof expression (overridable).

Parameters:
i -
Throws:
CannotCompileException

edit

void edit(Cast c)
          throws CannotCompileException
Edits an expression for explicit type casting (overridable).

Parameters:
c -
Throws:
CannotCompileException

edit

void edit(Handler h)
          throws CannotCompileException
Edits a catch clause (overridable).

Parameters:
h -
Throws:
CannotCompileException

JBoss Reflection 2.2.1.SP1

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