Java Code Examples for net.bytebuddy.description.type.TypeList#Explicit

The following examples show how to use net.bytebuddy.description.type.TypeList#Explicit . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AnnotationList.java    From byte-buddy with Apache License 2.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 */
public TypeList asTypeList() {
    List<TypeDescription> annotationTypes = new ArrayList<TypeDescription>(size());
    for (AnnotationDescription annotation : this) {
        annotationTypes.add(annotation.getAnnotationType());
    }
    return new TypeList.Explicit(annotationTypes);
}
 
Example 2
Source File: MethodInvocation.java    From byte-buddy with Apache License 2.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 */
public StackManipulation dynamic(String methodName,
                                 TypeDescription returnType,
                                 List<? extends TypeDescription> methodType,
                                 List<?> arguments) {
    return methodDescription.isInvokeBootstrap()
            ? new DynamicInvocation(methodName, returnType, new TypeList.Explicit(methodType), methodDescription.asDefined(), arguments)
            : Illegal.INSTANCE;
}
 
Example 3
Source File: MethodRebaseResolver.java    From byte-buddy with Apache License 2.0 4 votes vote down vote up
/**
 * {@inheritDoc}
 */
public TypeList getPrependedParameters() {
    return new TypeList.Explicit(placeholderType);
}
 
Example 4
Source File: JavaConstant.java    From byte-buddy with Apache License 2.0 2 votes vote down vote up
/**
 * Returns the parameter types of this method type.
 *
 * @return The parameter types of this method type.
 */
public TypeList getParameterTypes() {
    return new TypeList.Explicit(parameterTypes);
}
 
Example 5
Source File: JavaConstant.java    From byte-buddy with Apache License 2.0 2 votes vote down vote up
/**
 * Returns the parameter types represented by this instance.
 *
 * @return The parameter types represented by this instance.
 */
public TypeList getParameterTypes() {
    return new TypeList.Explicit(parameterTypes);
}