rewrite-impl-config 1.0.5.Final

org.ocpsoft.rewrite.bind
Class RegexCapture

java.lang.Object
  extended by org.ocpsoft.rewrite.bind.RegexCapture
All Implemented Interfaces:
Constrainable<RegexCapture,String>, Transformable<RegexCapture,String>

public class RegexCapture
extends Object
implements Constrainable<RegexCapture,String>, Transformable<RegexCapture,String>

Resultant capture of a ParameterizedPattern, used to store matching data and Binding instances.

Author:
Lincoln Baxter, III

Constructor Summary
RegexCapture(CapturingGroup capture, int index)
          Create a new instance for the given CapturingGroup, using ".*" as the default pattern.
 
Method Summary
 RegexCapture constrainedBy(Constraint<String> constraint)
           
 CapturingGroup getCapture()
           
 List<Constraint<String>> getConstraints()
           
 int getIndex()
           
 String getName()
           
 String getPattern()
           
 List<Transform<String>> getTransforms()
           
 void matches(String pattern)
           
 String toString()
           
 RegexCapture transformedBy(Transform<String> transform)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RegexCapture

public RegexCapture(CapturingGroup capture,
                    int index)
Create a new instance for the given CapturingGroup, using ".*" as the default pattern.

Parameters:
index -
Method Detail

constrainedBy

public RegexCapture constrainedBy(Constraint<String> constraint)
Specified by:
constrainedBy in interface Constrainable<RegexCapture,String>

getConstraints

public List<Constraint<String>> getConstraints()
Specified by:
getConstraints in interface Constrainable<RegexCapture,String>

transformedBy

public RegexCapture transformedBy(Transform<String> transform)
Specified by:
transformedBy in interface Transformable<RegexCapture,String>

getTransforms

public List<Transform<String>> getTransforms()
Specified by:
getTransforms in interface Transformable<RegexCapture,String>

matches

public void matches(String pattern)

getPattern

public String getPattern()

getIndex

public int getIndex()

getName

public String getName()

getCapture

public CapturingGroup getCapture()

toString

public String toString()
Overrides:
toString in class Object

rewrite-impl-config 1.0.5.Final

Copyright © 2012 OCPsoft. All Rights Reserved.