CodeQL library for Java
codeql/java-all 0.3.2 (changelog, source)
Search

Predicate getRootXmlFile

Gets the “root” struts.xml file that we believe applies to this refType.

We guess by identifying the “nearest” struts.xml configuration file, i.e. the Struts configuration file with the lowest common ancestor to this file.

Import path

import semmle.code.java.frameworks.struts.StrutsConventions
StrutsXmlFile getRootXmlFile(RefType refType)