Documentation
¶
Index ¶
- type AccessFlags
- func (af AccessFlags) IsAbstract() bool
- func (af AccessFlags) IsAnnotation() bool
- func (af AccessFlags) IsEnum() bool
- func (af AccessFlags) IsFinal() bool
- func (af AccessFlags) IsInterface() bool
- func (af AccessFlags) IsModule() bool
- func (af AccessFlags) IsPublic() bool
- func (af AccessFlags) IsSuper() bool
- func (af AccessFlags) IsSynthetic() bool
- type Attribute
- type ClassConst
- type CodeAttribute
- type Const
- type Decoder
- type DescriptorType
- type DoubleConst
- type ExceptionHandler
- type Field
- type FieldAccessFlags
- type FieldDescriptor
- type FieldrefConst
- type File
- type FloatConst
- type IntConst
- type LongConst
- type Method
- type MethodAccessFlags
- func (af MethodAccessFlags) IsAbstract() bool
- func (af MethodAccessFlags) IsBridge() bool
- func (af MethodAccessFlags) IsFinal() bool
- func (af MethodAccessFlags) IsNative() bool
- func (af MethodAccessFlags) IsPrivate() bool
- func (af MethodAccessFlags) IsProtected() bool
- func (af MethodAccessFlags) IsPublic() bool
- func (af MethodAccessFlags) IsStatic() bool
- func (af MethodAccessFlags) IsStrict() bool
- func (af MethodAccessFlags) IsSynchronized() bool
- func (af MethodAccessFlags) IsSynthetic() bool
- func (af MethodAccessFlags) IsVarargs() bool
- type MethodDescriptor
- type MethodrefConst
- type NameAndTypeConst
- type RawAttribute
- type StackMapFrame
- type StackMapTableAttribute
- type Utf8Const
- type Version
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessFlags ¶
type AccessFlags uint16
AccessFlags is a mask of flags used to denote access permissions to and properties of this class or interface.
The interpretation of each flag, when set, is specified below:
ACC_PUBLIC 0x0001 Declared public; may be accessed from outside its package. ACC_FINAL 0x0010 Declared final; no subclasses allowed. ACC_SUPER 0x0020 Treat superclass methods specially when invoked by the invokespecial instruction. ACC_INTERFACE 0x0200 Is an interface, not a class. ACC_ABSTRACT 0x0400 Declared abstract; must not be instantiated. ACC_SYNTHETIC 0x1000 Declared synthetic; not present in the source code. ACC_ANNOTATION 0x2000 Declared as an annotation type. ACC_ENUM 0x4000 Declared as an enum type. ACC_MODULE 0x8000 Is a module, not a class or interface.
func (AccessFlags) IsAbstract ¶
func (af AccessFlags) IsAbstract() bool
func (AccessFlags) IsAnnotation ¶
func (af AccessFlags) IsAnnotation() bool
func (AccessFlags) IsEnum ¶
func (af AccessFlags) IsEnum() bool
func (AccessFlags) IsFinal ¶
func (af AccessFlags) IsFinal() bool
func (AccessFlags) IsInterface ¶
func (af AccessFlags) IsInterface() bool
func (AccessFlags) IsModule ¶
func (af AccessFlags) IsModule() bool
func (AccessFlags) IsPublic ¶
func (af AccessFlags) IsPublic() bool
func (AccessFlags) IsSuper ¶
func (af AccessFlags) IsSuper() bool
func (AccessFlags) IsSynthetic ¶
func (af AccessFlags) IsSynthetic() bool
type ClassConst ¶
type ClassConst struct {
Name string
}
type CodeAttribute ¶
type CodeAttribute struct { MaxStack uint16 MaxLocals uint16 Code []byte ExceptionTable []ExceptionHandler Attrs []Attribute }
type DescriptorType ¶
func (DescriptorType) IsReference ¶
func (typ DescriptorType) IsReference() bool
func (DescriptorType) String ¶
func (typ DescriptorType) String() string
type DoubleConst ¶
type DoubleConst struct {
Value float64
}
type ExceptionHandler ¶
type Field ¶
type Field struct { AccessFlags FieldAccessFlags Name string Descriptor string Attrs []Attribute }
type FieldAccessFlags ¶
type FieldAccessFlags uint16
type FieldDescriptor ¶
type FieldDescriptor string
func (FieldDescriptor) GetType ¶
func (d FieldDescriptor) GetType() DescriptorType
type FieldrefConst ¶
type FloatConst ¶
type FloatConst struct {
Value float32
}
type Method ¶
type Method struct { AccessFlags MethodAccessFlags Name string Descriptor string Attrs []Attribute }
type MethodAccessFlags ¶
type MethodAccessFlags uint16
MethodAccessFlags is a mask of flags used to denote access permission to and properties of this method.
The interpretation of each flag, when set, is specified below:
ACC_PUBLIC 0x0001 Declared public; may be accessed from outside its package. ACC_PRIVATE 0x0002 Declared private; accessible only within the defining class and other classes belonging to the same nest. ACC_PROTECTED 0x0004 Declared protected; may be accessed within subclasses. ACC_STATIC 0x0008 Declared static. ACC_FINAL 0x0010 Declared final; must not be overridden. ACC_SYNCHRONIZED 0x0020 Declared synchronized; invocation is wrapped by a monitor use. ACC_BRIDGE 0x0040 A bridge method, generated by the compiler. ACC_VARARGS 0x0080 Declared with variable number of arguments. ACC_NATIVE 0x0100 Declared native; implemented in a language other than the Java programming language. ACC_ABSTRACT 0x0400 Declared abstract; no implementation is provided. ACC_STRICT 0x0800 Declared strictfp; floating-point mode is FP-strict. ACC_SYNTHETIC 0x1000 Declared synthetic; not present in the source code.
func (MethodAccessFlags) IsAbstract ¶
func (af MethodAccessFlags) IsAbstract() bool
func (MethodAccessFlags) IsBridge ¶
func (af MethodAccessFlags) IsBridge() bool
func (MethodAccessFlags) IsFinal ¶
func (af MethodAccessFlags) IsFinal() bool
func (MethodAccessFlags) IsNative ¶
func (af MethodAccessFlags) IsNative() bool
func (MethodAccessFlags) IsPrivate ¶
func (af MethodAccessFlags) IsPrivate() bool
func (MethodAccessFlags) IsProtected ¶
func (af MethodAccessFlags) IsProtected() bool
func (MethodAccessFlags) IsPublic ¶
func (af MethodAccessFlags) IsPublic() bool
func (MethodAccessFlags) IsStatic ¶
func (af MethodAccessFlags) IsStatic() bool
func (MethodAccessFlags) IsStrict ¶
func (af MethodAccessFlags) IsStrict() bool
func (MethodAccessFlags) IsSynchronized ¶
func (af MethodAccessFlags) IsSynchronized() bool
func (MethodAccessFlags) IsSynthetic ¶
func (af MethodAccessFlags) IsSynthetic() bool
func (MethodAccessFlags) IsVarargs ¶
func (af MethodAccessFlags) IsVarargs() bool
type MethodDescriptor ¶
type MethodDescriptor string
func (MethodDescriptor) ReturnType ¶
func (d MethodDescriptor) ReturnType() DescriptorType
func (MethodDescriptor) SignatureString ¶
func (d MethodDescriptor) SignatureString(name string) string
func (MethodDescriptor) WalkParams ¶
func (d MethodDescriptor) WalkParams(visit func(typ DescriptorType))
type MethodrefConst ¶
type NameAndTypeConst ¶
type RawAttribute ¶
type StackMapFrame ¶
type StackMapTableAttribute ¶
type StackMapTableAttribute struct {
Frames []StackMapFrame
}
Click to show internal directories.
Click to hide internal directories.