Package es.bsc.dataclay.util.tools.java
Class DataClayClassVisitor
- java.lang.Object
-
- org.objectweb.asm.ClassVisitor
-
- es.bsc.dataclay.util.tools.java.DataClayClassVisitor
-
public final class DataClayClassVisitor extends org.objectweb.asm.ClassVisitor
DataClay class analyzer.
-
-
Field Summary
Fields Modifier and Type Field Description static String
ECA_SIGNATURE
ECA signature used during the analysis.
-
Constructor Summary
Constructors Constructor Description DataClayClassVisitor(MetaClass themetaClass, String newclassFileName, String newdestClassName, ClassLoader userClassLoader, boolean newisEnrichment)
DataClay Class analyzer constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getClassFileName()
Get classFileNameClassLoader
getClassLoader()
Get classLoaderString
getClassNamespace(String className)
Get class namespaceSet<String>
getDependencies()
Get dependenciesString
getDestClassName()
Get destClassNameMetaClass
getMetaClass()
Get metaClassboolean
isEnrichment()
Get isEnrichmentvoid
visit(int version, int access, String name, String signature, String superName, String[] interfaces)
org.objectweb.asm.FieldVisitor
visitField(int access, String name, String desc, String signature, Object value)
org.objectweb.asm.MethodVisitor
visitMethod(int access, String name, String desc, String signature, String[] exceptions)
-
-
-
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 classorg.objectweb.asm.ClassVisitor
-
visitField
public org.objectweb.asm.FieldVisitor visitField(int access, String name, String desc, String signature, Object value)
- Overrides:
visitField
in classorg.objectweb.asm.ClassVisitor
-
visitMethod
public org.objectweb.asm.MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions)
- Overrides:
visitMethod
in classorg.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
-
getClassLoader
public ClassLoader getClassLoader()
Get classLoader- Returns:
- the classLoader
-
isEnrichment
public boolean isEnrichment()
Get isEnrichment- Returns:
- the isEnrichment
-
-