org.codehaus.aspectwerkz.regexp
Class FieldPattern

java.lang.Object
  extended byorg.codehaus.aspectwerkz.regexp.Pattern
      extended byorg.codehaus.aspectwerkz.regexp.FieldPattern
All Implemented Interfaces:
java.io.Serializable

public class FieldPattern
extends Pattern

Implements the regular expression pattern matcher for fields in AspectWerkz.

Example of supported patterns:

      int m_field
      * m_field
      int m_*
      int m_*d
      * *
      java.lang.String m_field
      String m_field
 

Author:
Jonas Bonér
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.codehaus.aspectwerkz.regexp.Pattern
MULTIPLE_WILDCARD, MULTIPLE_WILDCARD_KEY, SINGLE_WILDCARD
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getPattern()
          Returns the pattern as a string.
 int hashCode()
           
 boolean matches(FieldMetaData field)
          Matches a field.
 boolean matchFieldName(java.lang.String fieldName)
          Matches a field name.
 boolean matchFieldType(java.lang.String fieldType)
          Matches a field type.
 
Methods inherited from class org.codehaus.aspectwerkz.regexp.Pattern
compileCallerSidePattern, compileClassPattern, compileFieldPattern, compileMethodPattern, compileThrowsPattern
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

matches

public boolean matches(FieldMetaData field)
Matches a field.

Parameters:
field - the field
Returns:
true if we have a matches

matchFieldName

public boolean matchFieldName(java.lang.String fieldName)
Matches a field name.

Parameters:
fieldName - the name of the field
Returns:
true if we have a matches

matchFieldType

public boolean matchFieldType(java.lang.String fieldType)
Matches a field type.

Parameters:
fieldType - the type of the field
Returns:
true if we have a matches

getPattern

public java.lang.String getPattern()
Returns the pattern as a string.

Returns:
the pattern

hashCode

public int hashCode()

equals

public boolean equals(java.lang.Object o)


Copyright (c) 2002-2004 The AspectWerkz Team. All Rights Reserved.