Example usage for org.springframework.core.type AnnotatedTypeMetadata toString

List of usage examples for org.springframework.core.type AnnotatedTypeMetadata toString

Introduction

In this page you can find the example usage for org.springframework.core.type AnnotatedTypeMetadata toString.

Prototype

public String toString() 

Source Link

Document

Returns a string representation of the object.

Usage

From source file:lodsve.core.condition.SpringBootCondition.java

private String getName(AnnotatedTypeMetadata metadata) {
    if (metadata instanceof AnnotationMetadata) {
        return ((AnnotationMetadata) metadata).getClassName();
    }//from  w  w w.  j  a v  a 2s . com
    if (metadata instanceof MethodMetadata) {
        MethodMetadata methodMetadata = (MethodMetadata) metadata;
        return methodMetadata.getDeclaringClassName() + "." + methodMetadata.getMethodName();
    }
    return metadata.toString();
}