Skip to main content

Crate java_bin_name

Crate java_bin_name 

Source
Expand description

Java binary name parser and writer.

§Parsing

Types who implemented Parse trait could be parsed from a string slice using parse function.

Differences between JLS and class file representation will be handled automatically.

§Error Handling

This crate won’t handle naming errors unless necessary. Validate the string slices after parse if desired.

§Writing

Use Display or ToString for writing.

§Supported Items

Structs§

CanonicalClassName
Canonical, or fully qualified name of a class or interface.
ClassSignature
Signature of a class or interface declaration.
Cursor
Cursor of a string slice.
MethodDescriptor
Descriptor of a method despite of its signature.
MethodSignature
Signature of a method declaration.
ReducedClassTypeSignature
Signature of a class type.
TypeArgument
Type of an (generic) argument.
TypeParameter
Generic parameter of a class or method.
UnknownTypeTag
Error type marking the leading character of a type descriptor is invalid.

Enums§

ClassName
Binary name of a class or interface.
FieldType
The type of a field, parameter, local variable, or value.
InvalidClassSignature
Errors encountered while parsing a class signature.
InvalidMethodDescriptor
Error thrown when parsing a method descriptor.
InvalidMethodSignature
Errors encountered while parsing a method signature.
MethodReturnDescriptor
Method return type.
MethodReturnSignature
Result section in a method signature.
PrimitiveType
A primitive type of Java language.
ReprForm
Representation form of a component across different contexts.
TypeArgumentKind
Kind of a type argument that is not full wildcard.
TypeSignature
Signature of a Java type.

Traits§

Parse
Types that could be parsed from a borrowed string cursor.

Functions§

parse
Parses a name.

Type Aliases§

FieldSignature
Signature of a field, formal parameter, local variable, or record component declaration.