Class DataClayClassVisitor


  • public final class DataClayClassVisitor
    extends org.objectweb.asm.ClassVisitor
    DataClay class analyzer.
    • Field Detail

      • ECA_SIGNATURE

        public static final String ECA_SIGNATURE
        ECA signature used during the analysis.
    • Constructor Detail

      • DataClayClassVisitor

        public DataClayClassVisitor​(MetaClass themetaClass,
                                    String newclassFileName,
                                    String newdestClassName,
                                    ClassLoader userClassLoader,
                                    boolean newisEnrichment)
        DataClay Class analyzer constructor
        Parameters:
        themetaClass - MetaClass in which to store information analyzed.
        newclassFileName - Name of class file being analyzed.
        newdestClassName - Destination class name (can be different from original in case of enrichment)
        userClassLoader - Class loader containing the class to analyze.
        newisEnrichment - Indicates if class being analyzed is for an enrichment.
    • Method Detail

      • getClassNamespace

        public String getClassNamespace​(String className)
        Get class namespace
        Parameters:
        className - Name of class
        Returns:
        Namespace of class
      • visit

        public void visit​(int version,
                          int access,
                          String name,
                          String signature,
                          String superName,
                          String[] interfaces)
        Overrides:
        visit in class org.objectweb.asm.ClassVisitor
      • visitField

        public org.objectweb.asm.FieldVisitor visitField​(int access,
                                                         String name,
                                                         String desc,
                                                         String signature,
                                                         Object value)
        Overrides:
        visitField in class org.objectweb.asm.ClassVisitor
      • visitMethod

        public org.objectweb.asm.MethodVisitor visitMethod​(int access,
                                                           String name,
                                                           String desc,
                                                           String signature,
                                                           String[] exceptions)
        Overrides:
        visitMethod in class org.objectweb.asm.ClassVisitor
      • getMetaClass

        public MetaClass getMetaClass()
        Get metaClass
        Returns:
        the metaClass
      • getClassFileName

        public String getClassFileName()
        Get classFileName
        Returns:
        the classFileName
      • getDestClassName

        public String getDestClassName()
        Get destClassName
        Returns:
        the destClassName
      • getDependencies

        public Set<String> getDependencies()
        Get dependencies
        Returns:
        the dependencies
      • getClassLoader

        public ClassLoader getClassLoader()
        Get classLoader
        Returns:
        the classLoader
      • isEnrichment

        public boolean isEnrichment()
        Get isEnrichment
        Returns:
        the isEnrichment