| Package | Description |
|---|---|
| org.jboss.classfilewriter | |
| org.jboss.classfilewriter.attributes | |
| org.jboss.classfilewriter.code | |
| org.jboss.weld.bean.proxy |
JBoss, Home of Professional Open Source
Copyright 2015, Red Hat, Inc. and/or its affiliates, and individual
contributors by the @authors tag.
|
| Modifier and Type | Method and Description |
|---|---|
ClassMethod |
ClassFile.addConstructor(Constructor<?> method)
Adds a constructor with the same signiture as the given constrcutor, including exception types
TODO: annotations and signiture attribute
|
ClassMethod |
ClassFile.addMethod(int accessFlags,
String name,
String returnType,
String... parameters) |
ClassMethod |
ClassFile.addMethod(Method method)
Adds a method with the same signiture as the given method, including exception types
The new method will have the same modifier as the original method, except that the abstract and native flags will be
stripped.
|
| Modifier and Type | Method and Description |
|---|---|
Set<ClassMethod> |
ClassFile.getMethods() |
| Constructor and Description |
|---|
StackMapTableAttribute(ClassMethod classMethod,
ConstPool constPool) |
| Constructor and Description |
|---|
CodeAttribute(ClassMethod method,
ConstPool constPool) |
LocalVariableState(ClassMethod method)
construct the initial local variable state for a method
|
StackFrame(ClassMethod method)
Creates the initial stack frame
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
ProxyFactory.addConstructedGuardToMethodBody(ClassMethod classMethod)
Adds the following code to a delegating method:
if(! |
protected void |
ProxyFactory.addMethods(ClassFile proxyClassType,
ClassMethod staticConstructor) |
protected void |
InterceptedSubclassFactory.addMethods(ClassFile proxyClassType,
ClassMethod staticConstructor) |
protected void |
ProxyFactory.addMethodsFromClass(ClassFile proxyClassType,
ClassMethod staticConstructor) |
protected void |
InterceptedSubclassFactory.addMethodsFromClass(ClassFile proxyClassType,
ClassMethod staticConstructor) |
protected void |
DecoratorProxyFactory.addMethodsFromClass(ClassFile proxyClassType,
ClassMethod staticConstructor) |
protected void |
ProxyFactory.addSpecialMethods(ClassFile proxyClassType,
ClassMethod staticConstructor)
Adds methods requiring special implementations rather than just
delegation.
|
protected void |
InterceptedSubclassFactory.addSpecialMethods(ClassFile proxyClassType,
ClassMethod staticConstructor)
Adds methods requiring special implementations rather than just
delegation.
|
protected void |
EnterpriseProxyFactory.addSpecialMethods(ClassFile proxyClassType,
ClassMethod staticConstructor) |
protected void |
ProxyFactory.createForwardingMethodBody(ClassMethod classMethod,
MethodInformation method,
ClassMethod staticConstructor) |
protected void |
InterceptedSubclassFactory.createForwardingMethodBody(ClassMethod classMethod,
MethodInformation method,
ClassMethod staticConstructor) |
protected void |
ClientProxyFactory.createForwardingMethodBody(ClassMethod classMethod,
MethodInformation methodInfo,
ClassMethod staticConstructor)
Calls methodHandler.invoke with a null method parameter in order to
get the underlying instance.
|
protected void |
InterceptedSubclassFactory.createInterceptorBody(ClassMethod method,
MethodInformation methodInfo,
boolean delegateToSuper,
ClassMethod staticConstructor)
Creates the given method on the proxy class where the implementation
forwards the call directly to the method handler.
|
protected void |
ProxyFactory.createInterceptorBody(ClassMethod classMethod,
MethodInformation method,
ClassMethod staticConstructor)
Creates the given method on the proxy class where the implementation
forwards the call directly to the method handler.
|
protected void |
ProxyFactory.createSpecialMethodBody(ClassMethod proxyClassType,
MethodInformation method,
ClassMethod staticConstructor) |
protected void |
ProxyFactory.generateGetMethodHandlerBody(ClassMethod method) |
protected void |
ProxyFactory.generateSetMethodHandlerBody(ClassMethod method) |
void |
DefaultBytecodeMethodResolver.getDeclaredMethod(ClassMethod classMethod,
String declaringClass,
String methodName,
String[] parameterTypes,
ClassMethod staticConstructor) |
void |
DecoratorProxyFactory.TargetInstanceBytecodeMethodResolver.getDeclaredMethod(ClassMethod classMethod,
String declaringClass,
String methodName,
String[] parameterTypes,
ClassMethod staticConstructor) |
void |
BytecodeMethodResolver.getDeclaredMethod(ClassMethod classMethod,
String declaringClass,
String methodName,
String[] parameterTypes,
ClassMethod staticConstructor) |
protected void |
InterceptedSubclassFactory.invokeMethodHandler(ClassMethod method,
MethodInformation methodInfo,
boolean addReturnInstruction,
BytecodeMethodResolver bytecodeMethodResolver,
boolean addProceed,
ClassMethod staticConstructor)
calls methodHandler.invoke for a given method
|
protected void |
ProxyFactory.invokeMethodHandler(ClassMethod classMethod,
MethodInformation method,
boolean addReturnInstruction,
BytecodeMethodResolver bytecodeMethodResolver,
ClassMethod staticConstructor)
calls methodHandler.invoke for a given method
|
Copyright © 2015. All Rights Reserved.