Java 8 MethodDescriptor - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Java 8 MethodDescriptor class.

This code example shows how to use the following methods:getName
    private static final long serialVersionUID = 1L;
     
    private ApplicationInfo mApp;
     
    public FunctionInfo(MethodDescriptor method, ApplicationInfo provider) {
        super(method.getName(), method);
        mApp = provider;
    } 
 
    public Method getMethod() {
        return getDescriptor().getMethod();
    } 
     
    public MethodDescriptor getDescriptor() {
        return getValue(); 
    } 
 
    public ApplicationInfo getProvider() {
        return mApp;
    } 
5
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:getName, getMethod
 
    /** 
     * Reports all the interesting information in a MethodDescriptor 
     */ 
    public static void reportMethodDescriptor(MethodDescriptor md) {
        System.out.println("method name: " + md.getName());
        System.out.println("     method: " + md.getMethod());
    } 
} 
5
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:getMethod
This code example shows how to use the following methods:setShortDescription
	/** Set up the method name descriptions for actions */ 
	public MethodDescriptor[] getMethodDescriptors() {
		try { 
			// DODEMO() 
			Method m = Chart.class.getMethod("doDemo", new Class[] {});
			MethodDescriptor md1 = new MethodDescriptor(m);
			md1.setShortDescription("Run a simple demonstration");
 
			// SETDATA(ChartData[]); 
			Class<?> argTypes[] = { Class.forName("ChartData[]") };
			m = Chart.class.getMethod("setData", argTypes);
			MethodDescriptor md2 = new MethodDescriptor(m);
			md2.setShortDescription("Provide array of ChartData to plot");
 
			return new MethodDescriptor[] { md1, md2 };
 
		} catch (Exception e) {		// if anything fails, fall back to default
			System.out.println(e);
			return super.getMethodDescriptors(); 
		} 
4
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
See Code Examples for Java 8 MethodDescriptor Methods: