21 lines
912 B
JavaScript
21 lines
912 B
JavaScript
|
var FieldInfo = function(dStream,constantPool){
|
||
|
this.access_flags = dStream.getU2();
|
||
|
this.name_index = ConstantPoolRef(dStream.getU2(), constantPool, CONSTANT_Utf8);
|
||
|
this.descriptor_index = ConstantPoolRef(dStream.getU2(), constantPool, CONSTANT_Utf8);
|
||
|
this.attributes_count = dStream.getU2();
|
||
|
this.attributes = [];
|
||
|
for (var i=0; i<this.attributes_count; i++){
|
||
|
this.attributes[i] = Attribute(dStream,constantPool);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
var MethodInfo = function(dStream, constantPool){
|
||
|
this.access_flags = dStream.getU2();
|
||
|
this.name_index = ConstantPoolRef(dStream.getU2(), constantPool, CONSTANT_Utf8);
|
||
|
this.descriptor_index = ConstantPoolRef(dStream.getU2(), constantPool, CONSTANT_Utf8);
|
||
|
this.attributes_count = dStream.getU2();
|
||
|
this.attributes = [];
|
||
|
for (var i=0; i<this.attributes_count; i++){
|
||
|
this.attributes[i] = Attribute(dStream,constantPool);
|
||
|
}
|
||
|
}
|