Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.codehaus.aspectwerkz.expression
Class ExpressionValidateVisitor

    java.lang.Object
      org.codehaus.aspectwerkz.expression.ExpressionValidateVisitor

All Implemented Interfaces:
  ExpressionParserVisitor

    public class ExpressionValidateVisitor

extends Object
implements ExpressionParserVisitor

The visitor that extract all possible arguments referenced by the expression.

TODO handle pointcut reference and handle parameter transition + checks as done in the ArgIndexVisitor for this / target compliance.

Author:
  Alexandre Vasseur

Field Summary
`protected String` | `m_expression`
`protected String` | `m_namespace`
`protected Node` | `m_root`

Constructor Summary
`ExpressionValidateVisitor(String expression, String namespace, Node root)` Creates a new expression.

Method Summary
`void` | `populate(List data)` Populate data with the possible arguments
`String` | `toString()` Returns the string representation of the expression.
`Object` | `visit(ASTAnd node, Object data)`
`Object` | `visit(ASTArgParameter node, Object data)`
`Object` | `visit(ASTArgs node, Object data)`
`Object` | `visit(ASTAttribute node, Object data)`
`Object` | `visit(ASTCall node, Object data)`
`Object` | `visit(ASTCflowBelow node, Object data)`
`Object` | `visit(ASTCflow node, Object data)`
`Object` | `visit(ASTClassPattern node, Object data)`
`Object` | `visit(ASTConstructorPattern node, Object data)`
`Object` | `visit(ASTExecution node, Object data)`
`Object` | `visit(ASTExpression node, Object data)`
`Object` | `visit(ASTFieldPattern node, Object data)`
`Object` | `visit(ASTGet node, Object data)`
`Object` | `visit(ASTHandler node, Object data)`
`Object` | `visit(ASTHasField node, Object data)`
`Object` | `visit(ASTHasMethod node, Object data)`
`Object` | `visit(ASTMethodPattern node, Object data)`
`Object` | `visit(ASTModifier node, Object data)`
`Object` | `visit(ASTNot node, Object data)`
`Object` | `visit(ASTOr node, Object data)`
`Object` | `visit(ASTParameter node, Object data)`
`Object` | `visit(ASTPointcutReference node, Object data)`
`Object` | `visit(ASTRoot node, Object data)`
`Object` | `visit(ASTSet node, Object data)`
`Object` | `visit(ASTStaticInitialization node, Object data)`
`Object` | `visit(ASTTarget node, Object data)`
`Object` | `visit(ASTThis node, Object data)`
`Object` | `visit(ASTWithinCode node, Object data)`
`Object` | `visit(ASTWithin node, Object data)`
`Object` | `visit(Node node, Object data)`
`Object` | `visit(SimpleNode node, Object data)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Field Detail

### m_root

    protected Node m_root

### m_expression

    protected String m_expression

### m_namespace

    protected String m_namespace

Constructor Detail

### ExpressionValidateVisitor

    public ExpressionValidateVisitor(String expression,
                                     String namespace,
                                     Node root)

  Creates a new expression.

  Parameters:
    `expression` - the expression as a string
    `namespace` - the namespace
    `root` - the AST root

Method Detail

### populate

    public void populate(List data)

  Populate data with the possible arguments

  Parameters:
    `data` - a list to feed with Strings

### visit

    public Object visit(Node node,
                        Object data)

### visit

    public Object visit(SimpleNode node,
                        Object data)

  Specified by:
    `visit` in interface `ExpressionParserVisitor`

### visit

    public Object visit(ASTRoot node,
                        Object data)

  Specified by:
    `visit` in interface `ExpressionParserVisitor`

### visit

    public Object visit(ASTExpression node,
                        Object data)

  Specified by:
    `visit` in interface `ExpressionParserVisitor`

### visit

    public Object visit(ASTOr node,
                        Object data)

  Specified by:
    `visit` in interface `ExpressionParserVisitor`

### visit

    public Object visit(ASTAnd node,
                        Object data)

  Specified by:
    `visit` in interface `ExpressionParserVisitor`

### visit

    public Object visit(ASTNot node,
                        Object data)

  Specified by:
    `visit` in interface `ExpressionParserVisitor`

### visit

    public Object visit(ASTPointcutReference node,
                        Object data)

  Specified by:
    `visit` in interface `ExpressionParserVisitor`

### visit

    public Object visit(ASTExecution node,
                        Object data)

  Specified by:
    `visit` in interface `ExpressionParserVisitor`

### visit

    public Object visit(ASTCall node,
                        Object data)

  Specified by:
    `visit` in interface `ExpressionParserVisitor`

### visit

    public Object visit(ASTSet node,
                        Object data)

  Specified by:
    `visit` in interface `ExpressionParserVisitor`

### visit

    public Object visit(ASTGet node,
                        Object data)

  Specified by:
    `visit` in interface `ExpressionParserVisitor`

### visit

    public Object visit(ASTHandler node,
                        Object data)

  Specified by:
    `visit` in interface `ExpressionParserVisitor`

### visit

    public Object visit(ASTStaticInitialization node,
                        Object data)

  Specified by:
    `visit` in interface `ExpressionParserVisitor`

### visit

    public Object visit(ASTWithin node,
                        Object data)

  Specified by:
    `visit` in interface `ExpressionParserVisitor`

### visit

    public Object visit(ASTWithinCode node,
                        Object data)

  Specified by:
    `visit` in interface `ExpressionParserVisitor`

### visit

    public Object visit(ASTHasMethod node,
                        Object data)

  Specified by:
    `visit` in interface `ExpressionParserVisitor`

### visit

    public Object visit(ASTHasField node,
                        Object data)

  Specified by:
    `visit` in interface `ExpressionParserVisitor`

### visit

    public Object visit(ASTCflow node,
                        Object data)

  Specified by:
    `visit` in interface `ExpressionParserVisitor`

### visit

    public Object visit(ASTCflowBelow node,
                        Object data)

  Specified by:
    `visit` in interface `ExpressionParserVisitor`

### visit

    public Object visit(ASTTarget node,
                        Object data)

  Specified by:
    `visit` in interface `ExpressionParserVisitor`

### visit

    public Object visit(ASTThis node,
                        Object data)

  Specified by:
    `visit` in interface `ExpressionParserVisitor`

### visit

    public Object visit(ASTClassPattern node,
                        Object data)

  Specified by:
    `visit` in interface `ExpressionParserVisitor`

### visit

    public Object visit(ASTMethodPattern node,
                        Object data)

  Specified by:
    `visit` in interface `ExpressionParserVisitor`

### visit

    public Object visit(ASTConstructorPattern node,
                        Object data)

  Specified by:
    `visit` in interface `ExpressionParserVisitor`

### visit

    public Object visit(ASTFieldPattern node,
                        Object data)

  Specified by:
    `visit` in interface `ExpressionParserVisitor`

### visit

    public Object visit(ASTParameter node,
                        Object data)

  Specified by:
    `visit` in interface `ExpressionParserVisitor`

### visit

    public Object visit(ASTArgs node,
                        Object data)

  Specified by:
    `visit` in interface `ExpressionParserVisitor`

### visit

    public Object visit(ASTArgParameter node,
                        Object data)

  Specified by:
    `visit` in interface `ExpressionParserVisitor`

### visit

    public Object visit(ASTAttribute node,
                        Object data)

  Specified by:
    `visit` in interface `ExpressionParserVisitor`

### visit

    public Object visit(ASTModifier node,
                        Object data)

  Specified by:
    `visit` in interface `ExpressionParserVisitor`

### toString

    public String toString()

  Returns the string representation of the expression.

  Overrides:
    `toString` in class `Object`
  Returns:

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2002-2005 Jonas Bonér, Alexandre Vasseur. All Rights Reserved.