use of apex.jorje.data.ast.TypeRefs.ClassTypeRef in project pmd by pmd.
the class ApexOpenRedirectRule method checkNewObjects.
/**
* Traverses all new declarations to find PageReferences
*
* @param node
* @param data
*/
private void checkNewObjects(ASTNewObjectExpression node, Object data) {
ASTMethod method = node.getFirstParentOfType(ASTMethod.class);
if (method != null && Helper.isTestMethodOrClass(method)) {
return;
}
ClassTypeRef classRef = (ClassTypeRef) node.getNode().getTypeRef();
Identifier identifier = classRef.getNames().get(0);
if (identifier.getValue().equalsIgnoreCase(PAGEREFERENCE)) {
getObjectValue(node, data);
}
}
Aggregations