Exemple #1
0
 /**
  * Provide the name of the JavaScript element. This is the final identifier in any qualified name.
  *
  * @return the simple name of a JavaScript element.
  */
 public String getElementName() {
   return DottedNameTools.getFinalNameSegment(getJavaScriptId());
 }
Exemple #2
0
 /**
  * Convert a JavaScript style name to its parent name. No everything that shows up in JavaScript
  * analysis is a {@code JavaScriptElement}.
  *
  * @param qName Qualified name, with elements separated by periods
  * @return the qName of the parent, or empty if no parent is identified
  */
 public static String getParentName(String qName) {
   return DottedNameTools.getParentNameSegments(qName);
 }