Class JavaNames

java.lang.Object
org.jacoco.report.JavaNames
All Implemented Interfaces:
ILanguageNames

public class JavaNames extends Object implements ILanguageNames
Names for the Java language.
  • Constructor Details

    • JavaNames

      public JavaNames()
  • Method Details

    • getPackageName

      public String getPackageName(String vmname)
      Description copied from interface: ILanguageNames
      Calculates the language specific name of a package.
      Specified by:
      getPackageName in interface ILanguageNames
      Parameters:
      vmname - vm name of a package
      Returns:
      language specific notation for the package
    • getClassName

      private String getClassName(String vmname)
    • isAnonymous

      private boolean isAnonymous(String vmname)
    • getClassName

      public String getClassName(String vmname, String vmsignature, String vmsuperclass, String[] vminterfaces)
      Description copied from interface: ILanguageNames
      Calculates the language specific name of a class.
      Specified by:
      getClassName in interface ILanguageNames
      Parameters:
      vmname - vm name of a class
      vmsignature - vm signature of the class (may be null)
      vmsuperclass - vm name of the superclass of the class (may be null)
      vminterfaces - vm names of interfaces of the class (may be null)
      Returns:
      language specific notation of the class
    • getQualifiedClassName

      public String getQualifiedClassName(String vmname)
      Description copied from interface: ILanguageNames
      Calculates the language specific qualified name of a class.
      Specified by:
      getQualifiedClassName in interface ILanguageNames
      Parameters:
      vmname - vm name of a class
      Returns:
      language specific qualified notation of the class
    • getMethodName

      public String getMethodName(String vmclassname, String vmmethodname, String vmdesc, String vmsignature)
      Description copied from interface: ILanguageNames
      Calculates the language specific name of a method.
      Specified by:
      getMethodName in interface ILanguageNames
      Parameters:
      vmclassname - vm name of a containing class
      vmmethodname - vm name of the method
      vmdesc - vm method descriptor
      vmsignature - vm signature of the method (may be null)
      Returns:
      language specific notation for the method
    • getQualifiedMethodName

      public String getQualifiedMethodName(String vmclassname, String vmmethodname, String vmdesc, String vmsignature)
      Description copied from interface: ILanguageNames
      Calculates the language specific fully qualified name of a method.
      Specified by:
      getQualifiedMethodName in interface ILanguageNames
      Parameters:
      vmclassname - vm name of a containing class
      vmmethodname - vm name of the method
      vmdesc - vm method descriptor
      vmsignature - vm signature of the method (may be null)
      Returns:
      language specific notation for the method
    • getMethodName

      private String getMethodName(String vmclassname, String vmmethodname, String vmdesc, boolean qualifiedParams)
    • getShortTypeName

      private String getShortTypeName(org.objectweb.asm.Type type)