1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#![allow(unused)]

//! Provides types for working with class file.
//!
//! The `classfile` crate provides types for describing the
//! class file format of the Java Virtual Machine.
//!
//! It's not class file parser.
pub mod attributes;
mod classfile;
pub mod constant_pool;
pub mod consts;
mod field_info;
pub mod flags;
mod method_info;
mod opcode;
mod signature;
pub mod types;
mod version;

pub use crate::classfile::classfile::ClassFile;
pub use attributes::Type as AttributeType;
pub use constant_pool::Type as ConstantPoolType;
pub use field_info::FieldInfo;
pub use method_info::MethodInfo;
pub use opcode::OpCode;
pub use signature::Type as SignatureType;
pub use types::BytesRef;
pub use types::ConstantPool;
pub use version::Version;

#[cfg(test)]
mod tests {
    #[test]
    fn it_works() {
        assert_eq!(2 + 2, 4);
    }
}