Package com.ibm.wala.cast.tree.pattern
Class NodeOfKind
- java.lang.Object
-
- com.ibm.wala.cast.tree.pattern.NodeOfKind
-
- All Implemented Interfaces:
NodePattern
- Direct Known Subclasses:
SomeConstant
,SubtreeOfKind
public class NodeOfKind extends Object implements NodePattern
A node pattern that matches an AST node of a certain kind; additionally, the node's children have to match the pattern's child patterns.
-
-
Field Summary
Fields Modifier and Type Field Description protected NodePattern[]
children
protected int
kind
-
Constructor Summary
Constructors Constructor Description NodeOfKind(int kind, NodePattern... children)
-
-
-
Field Detail
-
kind
protected int kind
-
children
protected NodePattern[] children
-
-
Constructor Detail
-
NodeOfKind
public NodeOfKind(int kind, NodePattern... children)
-
-
Method Detail
-
matches
public boolean matches(CAstNode node)
- Specified by:
matches
in interfaceNodePattern
-
-