private Node getParentContainer(Node node) { if (node instanceof ASTOperationContainer || node == null) { return node; } return getParentContainer(node.jjtGetParent()); }
private ASTObjectList getObjectList(Node node) { if (node == null) { return null; } if (node instanceof ASTPropertyListPath) { return ((ASTPropertyListPath)node).getObjectList(); } else { return getObjectList(node.jjtGetParent()); } }
private boolean checkInverse(Node node) { if (node instanceof ASTPathElt) { return ((ASTPathElt)node).isInverse(); } else { Node parent = node.jjtGetParent(); if (parent != null) { return checkInverse(parent); } else { return false; } } }