org.codehaus.aspectwerkz.definition
Class PointcutDefinition

java.lang.Object
  extended byorg.codehaus.aspectwerkz.definition.PointcutDefinition
All Implemented Interfaces:
java.io.Serializable

public class PointcutDefinition
extends java.lang.Object
implements java.io.Serializable

Holds the pointcut definition.

Author:
Jonas Bonér
See Also:
Serialized Form

Field Summary
static java.lang.String CALLER_SIDE
           
static java.lang.String CFLOW
           
static java.lang.String GET_FIELD
           
static java.lang.String METHOD
           
static java.lang.String SET_FIELD
           
static java.lang.String THROWS
           
 
Constructor Summary
PointcutDefinition()
           
 
Method Summary
 java.lang.String getClassPattern()
          Returns the class pattern for the pointcut.
 java.lang.String getName()
          Returns the name of the pointcut.
 java.lang.String getNonReentrant()
          Returns the string representation of the non-reentrancy flag.
 java.lang.String getPattern()
          Returns the pattern for the pointcut.
 PointcutPatternTuple getPointcutPatternTuple()
          Returns the pointcut pattern tuple for the pre-compiled class A method pattern.
 ClassPattern getRegexpClassPattern()
          Returns a pre-compiled Pattern for the class pattern.
 Pattern getRegexpPattern()
          Returns a pre-compiled Pattern for the pattern.
 java.lang.String getType()
          Returns the type of the pointcut.
 boolean isHierarchical()
          Checks if the pointcut is hierarchical.
 boolean isNonReentrant()
          Checks if the pointcut is non-reentrant or not.
 void markAsHierarchical()
          Marks the pointcut as hierarchical.
 void setClassPattern(java.lang.String classPattern)
          Adds a class pattern for the pointcut.
 void setName(java.lang.String name)
          Sets the name of the pointcut.
 void setNonReentrant(java.lang.String isNonReentrant)
          Sets the non-reentrancy flag.
 void setPattern(java.lang.String pattern)
          Adds a pattern for the pointcut.
 void setType(java.lang.String type)
          Sets the type of the pointcut.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

METHOD

public static final java.lang.String METHOD
See Also:
Constant Field Values

GET_FIELD

public static final java.lang.String GET_FIELD
See Also:
Constant Field Values

SET_FIELD

public static final java.lang.String SET_FIELD
See Also:
Constant Field Values

THROWS

public static final java.lang.String THROWS
See Also:
Constant Field Values

CALLER_SIDE

public static final java.lang.String CALLER_SIDE
See Also:
Constant Field Values

CFLOW

public static final java.lang.String CFLOW
See Also:
Constant Field Values
Constructor Detail

PointcutDefinition

public PointcutDefinition()
Method Detail

getName

public java.lang.String getName()
Returns the name of the pointcut.

Returns:
the name of the pointcut

setName

public void setName(java.lang.String name)
Sets the name of the pointcut.


getType

public java.lang.String getType()
Returns the type of the pointcut.

Returns:
the type

setType

public void setType(java.lang.String type)
Sets the type of the pointcut.

Parameters:
type - the type

getClassPattern

public java.lang.String getClassPattern()
Returns the class pattern for the pointcut.

Returns:
the class pattern

setClassPattern

public void setClassPattern(java.lang.String classPattern)
Adds a class pattern for the pointcut.


getPattern

public java.lang.String getPattern()
Returns the pattern for the pointcut.

Returns:
the pattern

setPattern

public void setPattern(java.lang.String pattern)
Adds a pattern for the pointcut.

Parameters:
pattern - the pattern

getRegexpClassPattern

public ClassPattern getRegexpClassPattern()
Returns a pre-compiled Pattern for the class pattern.

Returns:
a pre-compiled Pattern for the class pattern

getRegexpPattern

public Pattern getRegexpPattern()
Returns a pre-compiled Pattern for the pattern.

Returns:
a pre-compiled Pattern for the pattern

getPointcutPatternTuple

public PointcutPatternTuple getPointcutPatternTuple()
Returns the pointcut pattern tuple for the pre-compiled class A method pattern.

Returns:
the pointcut pattern tuple

markAsHierarchical

public void markAsHierarchical()
Marks the pointcut as hierarchical.


isHierarchical

public boolean isHierarchical()
Checks if the pointcut is hierarchical.

Returns:
the flag

setNonReentrant

public void setNonReentrant(java.lang.String isNonReentrant)
Sets the non-reentrancy flag.

Parameters:
isNonReentrant -

getNonReentrant

public java.lang.String getNonReentrant()
Returns the string representation of the non-reentrancy flag.

Returns:
the non-reentrancy flag

isNonReentrant

public boolean isNonReentrant()
Checks if the pointcut is non-reentrant or not.

Returns:
the non-reentrancy flag


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