com.adamcornett.cminus.analysis
Annotation Type NodeTest


@Retention(value=RUNTIME)
@Documented
public @interface NodeTest

This annotation is for methods of the Analyzer that are to be run on a node.

Author:
Adam Cornett

Optional Element Summary
 boolean checkClass
          True if the Node Test depends on the class of the node.
 boolean checkType
          True if the Node Test depends on the token type of the node.
 boolean failOnError
          True if the analyzer should stop if this test generates an error
 Class<? extends CMTree> nodeClass
          The class to match if using class filtering
 int nodeType
          The node type to match if using node type filtering.
 

checkClass

public abstract boolean checkClass
True if the Node Test depends on the class of the node.

Returns:
Default:
false

checkType

public abstract boolean checkType
True if the Node Test depends on the token type of the node.

Returns:
Default:
false

failOnError

public abstract boolean failOnError
True if the analyzer should stop if this test generates an error

Returns:
Default:
false

nodeClass

public abstract Class<? extends CMTree> nodeClass
The class to match if using class filtering

Returns:
Default:
com.adamcornett.cminus.tree.CMTree.class

nodeType

public abstract int nodeType
The node type to match if using node type filtering.

Returns:
Default:
0