rewrite-config-annotations-api 1.1.0.Final

org.ocpsoft.rewrite.annotation.api
Interface MethodContext

All Superinterfaces:
ClassContext, Context

public interface MethodContext
extends ClassContext

Context for scanning a single field of a class

Author:
Lincoln Baxter, III

Method Summary
 BindingBuilder getBindingBuilder()
          Returns the BindingBuilder for the current method.
 ClassContext getClassContext()
          Return the parent ClassContext to which this context is a descendant.
 void setBindingBuilder(BindingBuilder bindingBuilder)
          Sets the BindingBuilder for the current method.
 
Methods inherited from interface org.ocpsoft.rewrite.annotation.api.ClassContext
getConfigurationBuilder, getRuleBuilder
 
Methods inherited from interface org.ocpsoft.rewrite.context.Context
containsKey, get, put
 

Method Detail

setBindingBuilder

void setBindingBuilder(BindingBuilder bindingBuilder)
Sets the BindingBuilder for the current method. Should be called by annotation handlers after they created a binding for the method.


getBindingBuilder

BindingBuilder getBindingBuilder()
Returns the BindingBuilder for the current method. May return null if no binding has yet been created for the method.


getClassContext

ClassContext getClassContext()
Return the parent ClassContext to which this context is a descendant.


rewrite-config-annotations-api 1.1.0.Final

Copyright © 2012 OCPsoft. All Rights Reserved.