Java Code Examples for net.bytebuddy.description.method.MethodDescription#getVisibility()

The following examples show how to use net.bytebuddy.description.method.MethodDescription#getVisibility() . 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: MethodRegistry.java    From byte-buddy with Apache License 2.0 5 votes vote down vote up
/**
 * Returns a prepared entry for a supplementary method.
 *
 * @param methodDescription The method to be implemented.
 * @return An entry for a supplementary entry that is defined by a method implementation instance.
 */
protected Prepared.Entry asSupplementaryEntry(MethodDescription methodDescription) {
    return new Prepared.Entry(handler,
            MethodAttributeAppender.Explicit.of(methodDescription),
            methodDescription,
            Collections.<MethodDescription.TypeToken>emptySet(),
            methodDescription.getVisibility(),
            false);
}
 
Example 2
Source File: MethodGraph.java    From byte-buddy with Apache License 2.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 */
public Entry<U> extendBy(MethodDescription methodDescription, Harmonizer<U> harmonizer) {
    return new Resolved<U>(key.extend(methodDescription.asDefined(), harmonizer),
            methodDescription,
            methodDescription.getVisibility(),
            Resolved.NOT_MADE_VISIBLE);
}