public class WeaveLog extends Object
| Constructor and Description |
|---|
WeaveLog(int classId,
int nextMethodId,
int nextDataId)
Create an instance having the given state.
|
| Modifier and Type | Method and Description |
|---|---|
ArrayList<com.insidious.common.weaver.DataInfo> |
getDataEntries() |
String |
getFullClassName() |
String |
getLog() |
ArrayList<com.insidious.common.weaver.MethodInfo> |
getMethods() |
int |
getNextDataId() |
int |
getNextMethodId() |
void |
log(String message)
Record an error message.
|
int |
nextDataId(int line,
int instructionIndex,
com.insidious.common.weaver.EventType eventType,
com.insidious.common.weaver.Descriptor valueDesc,
String attributes)
Create a new Data ID and record the information.
|
void |
setFullClassName(String name)
Record the current target class with a full class name obtained from a target class file.
|
void |
startMethod(String className,
String methodName,
String methodDesc,
int access,
String sourceFileName,
String methodHash)
Record a woven method name.
|
public static final String SEPARATOR
public WeaveLog(int classId,
int nextMethodId,
int nextDataId)
classId - is the ID used by the target class (if succeeded)nextMethodId - is the first ID of the methods of the target classnextDataId - is the first ID of the data IDs of the target classpublic String getFullClassName()
public void setFullClassName(String name)
name - fully qualified class name of the weaved targetpublic int getNextMethodId()
public int getNextDataId()
public void startMethod(String className, String methodName, String methodDesc, int access, String sourceFileName, String methodHash)
className - is a class name.methodName - is a method name.methodDesc - is a descriptor representing the signature.access - represents modifiers, e.g. static.sourceFileName - specifies a source file name recorded in the class file.methodHash - hash for the method being visitedpublic int nextDataId(int line,
int instructionIndex,
com.insidious.common.weaver.EventType eventType,
com.insidious.common.weaver.Descriptor valueDesc,
String attributes)
line - specifies the line number.instructionIndex - specifies the location of the instruction in the ASM's InsnList object.eventType - is an event type (decided by the instruction type).valueDesc - specifies a data type of the value observed by the event.attributes - specifies additional static information obtained from bytecode.public void log(String message)
message - message to be loggedpublic String getLog()
public ArrayList<com.insidious.common.weaver.DataInfo> getDataEntries()
public ArrayList<com.insidious.common.weaver.MethodInfo> getMethods()
Copyright © 2023. All rights reserved.