delors / bat Goto Github PK
View Code? Open in Web Editor NEWA Java Bytecode library written in Scala that provides an object-oriented representation that facilitates static analyses by means of pattern matching.
A Java Bytecode library written in Scala that provides an object-oriented representation that facilitates static analyses by means of pattern matching.
After mixing the trait 'UseIDOfBaseTypeForArrayTypes' in, the array type 'int[]' still occurs in the resulting structure.
All the other calls of sourceElementID with array types were reduced to their corresponding base types.
Transformations of bytecode that contains local variable tables result in a BAT model instance that does not contain these information.
Simple example:
(Java Code):
public void testMethod() {
List list = new ArrayList();
list.add(null);
}
(Bytecode):
public void testMethod();
Code:
0: new #17; //class java/util/ArrayList
3: dup
4: invokespecial #19; //Method java/util/ArrayList."":()V
7: astore_1
8: aload_1
9: aconst_null
10: invokeinterface #20, 2; //InterfaceMethod java/util/List.add:(Ljava/lang/Object;)Z
15: pop
16: return
LineNumberTable:
line 8: 0
line 9: 8
line 10: 16
LocalVariableTable:
Start Length Slot Name Signature
0 17 0 this Ltest/TestClass;
8 9 1 list Ljava/util/List;
Extracted (Method_Info) attributes:
Only the following Code_attribute is attached to the Method_Info object...
Code_attribute(maxStack=2, maxLocals=2,Array(NEW(ObjectType(className="java/util/ArrayList")), DUP, INVOKESPECIAL(ObjectType(className="java/util/ArrayList"),,MethodDescriptor(parameterTypes=List(); returnType=VoidType)), ASTORE_1, ALOAD_1, ACONST_NULL, INVOKEINTERFACE(ObjectType(className="java/util/List"),add,MethodDescriptor(parameterTypes=List(ObjectType(className="java/lang/Object")); returnType=BooleanType)), POP, RETURN)WrappedArray(),WrappedArray())
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.