forked from ocpsoft/rewrite
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added ClassContext method to set a base rule that is built from a cla…
…ss (preparation for ocpsoft#60)
- Loading branch information
Showing
6 changed files
with
52 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,12 +20,13 @@ | |
import org.ocpsoft.rewrite.annotation.api.ParameterContext; | ||
import org.ocpsoft.rewrite.bind.BindingBuilder; | ||
import org.ocpsoft.rewrite.config.ConfigurationBuilder; | ||
import org.ocpsoft.rewrite.config.Rule; | ||
import org.ocpsoft.rewrite.config.RuleBuilder; | ||
import org.ocpsoft.rewrite.context.ContextBase; | ||
|
||
/** | ||
* Default implementation of {@link ParameterContext} | ||
* | ||
* | ||
* @author <a href="mailto:[email protected]">Lincoln Baxter, III</a> | ||
*/ | ||
@SuppressWarnings("rawtypes") | ||
|
@@ -76,4 +77,10 @@ public BindingBuilder getBindingBuilder() | |
return bindingBuilder; | ||
} | ||
|
||
@Override | ||
public void setBaseRule(Rule rule) | ||
{ | ||
methodContext.setBaseRule(rule); | ||
} | ||
|
||
} |