byte-buddy-1.8.21.jar
登录
|
net.bytebuddy:byte-buddy:1.8.21
META-INF
net
bytebuddy
pool
package-info.java
asm
matcher
implementation
auxiliary
package-info.java
TypeProxy.java
TrivialType.java
MethodCallProxy.java
PrivilegedMemberLookupAction.java
AuxiliaryType.java
package-info.java
bytecode
Implementation.java
InvokeDynamic.java
LoadedTypeInitializer.java
MethodDelegation.java
DefaultMethodCall.java
bind
FixedValue.java
StubMethod.java
InvocationHandlerAdapter.java
MethodAccessorFactory.java
attribute
FieldAccessor.java
MethodCall.java
ExceptionMethod.java
EqualsMethod.java
HashCodeMethod.java
ToStringMethod.java
SuperMethodCall.java
utility
dynamic
ByteBuddy.java
build
NamingStrategy.java
ClassFileVersion.java
TypeCache.java
description
agent
jar
TrivialType.java
清空
类结构
package net.bytebuddy.implementation.auxiliary; import net.bytebuddy.
ByteBuddy
; import net.bytebuddy.
ClassFileVersion
; import net.bytebuddy.description.annotation.
AnnotationDescription
; import net.bytebuddy.dynamic.
DynamicType
; import net.bytebuddy.dynamic.scaffold.
MethodGraph
; import net.bytebuddy.dynamic.scaffold.
TypeValidation
; import net.bytebuddy.dynamic.scaffold.subclass.
ConstructorStrategy
; import net.bytebuddy.implementation.
MethodAccessorFactory
; import java.util.
Collections
; /** * A trivial type that extends {@link java.lang.Object} without defining any fields, methods or constructors. * This type is meant to be used as a marker type only. */ public enum
TrivialType
implements
AuxiliaryType
{ /** * A trivial type that defines the {@link SignatureRelevant} annotation. */ SIGNATURE_RELEVANT(true), /** * A non-annotated trivial type. */ PLAIN(false); /** * Determines if this type determines the {@link SignatureRelevant} annotation. */ private final boolean
eager
; /** * Creates a new trivial type. * * @param eager Determines if this type determines the {@link SignatureRelevant} annotation. */
TrivialType
(boolean
eager
) { this.
eager
=
eager
; } @
Override
public
DynamicType
make
(
String
auxiliaryTypeName
,
ClassFileVersion
classFileVersion
,
MethodAccessorFactory
methodAccessorFactory
) { return new
ByteBuddy
(
classFileVersion
) .
with
(
TypeValidation
.
DISABLED
) .
with
(
MethodGraph
.
Empty
.
INSTANCE
) // avoid parsing the graph .
subclass
(
Object
.class,
ConstructorStrategy
.
Default
.
NO_CONSTRUCTORS
) .
annotateType
(
eager
?
Collections
.
singletonList
(
AnnotationDescription
.
Builder
.
ofType
(
SignatureRelevant
.class).
build
()) :
Collections
.<
AnnotationDescription
>
emptyList
()) .
name
(
auxiliaryTypeName
) .
modifiers
(
DEFAULT_TYPE_MODIFIER
) .
make
(); } }
查找资源
Jre/Lib
输入类名或文件名
类结构窗口