Share via


Class.Name 속성

정의

Class 개체가 나타내는 엔터티(클래스, 인터페이스, 배열 클래스, 기본 형식 또는 void)의 이름을 로 String반환합니다.

public string Name { [Android.Runtime.Register("getName", "()Ljava/lang/String;", "")] get; }
[<get: Android.Runtime.Register("getName", "()Ljava/lang/String;", "")>]
member this.Name : string

속성 값

이 개체가 나타내는 클래스 또는 인터페이스의 이름입니다.

특성

설명

Class 개체가 나타내는 엔터티(클래스, 인터페이스, 배열 클래스, 기본 형식 또는 void)의 이름을 로 String반환합니다.

이 클래스 개체가 배열 형식이 아닌 참조 형식을 나타내는 경우 java&trade에서 지정한 <>대로 클래스의 이진 이름이 반환됩니다. 언어 사양</인용>.

이 클래스 개체가 기본 형식 또는 void를 나타내는 경우 반환되는 String 이름은 기본 형식 또는 void에 해당하는 Java 언어 키워드(keyword) 같습니다.

이 클래스 개체가 배열의 클래스를 나타내는 경우 이름의 내부 형식은 배열 중첩의 깊이를 나타내는 하나 이상의 '[' 문자 앞에 오는 요소 형식의 이름으로 구성됩니다. 요소 형식 이름의 인코딩은 다음과 같습니다.

<blockquote><table class="striped"><캡션 style="display:none">Element types and encodings</캡션<>thead<>tr><th scope="col"> Element Type <th scope="col"> Encoding </thead><tbody style="text-align:left"><tr><th scope="row"> boolean <td style=" text-align:center"> Z <tr><th scope="row"> byte <td style="text-align:center"> B <tr><th scope="row"> char <td style="text-align:center"> C <tr><th scope="row"> 클래스 또는 인터페이스 <td style="text-align:center"> L클래스 이름; <trth><scope="row"> double <td style="text-align:center"> D <tr><th scope="row"> float <td style="text-align:center"> F <tr><th scope="row"> int <td style="text-align:center"> I <trth><scope="row"> long <td style="text-align:center"> J <trth><th scope="row"> short <td style="text-align:center"> S </tbody<>/table></blockquote>

클래스 또는 인터페이스 이름 클래스 이름은 위에서 지정한 클래스의 이진 이름입니다.

예: <blockquote>

String.class.getName()
                returns "java.lang.String"
            byte.class.getName()
                returns "byte"
            (new Object[3]).getClass().getName()
                returns "[Ljava.lang.Object;"
            (new int[3][4][5][6][7][8][9]).getClass().getName()
                returns "[[[[[[[I"

</인용구>

에 대한 Java 설명서입니다 java.lang.Class.getName().

이 페이지의 일부는 만들고 공유하며 에 설명된 용어에 따라 사용되는 작업을 기반으로 수정됩니다.

적용 대상