File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed
src/java.compiler/share/classes/javax/lang/model/element Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ public interface Element extends AnnotatedConstruct {
68
68
* @see TypeElement#asType
69
69
* @see TypeParameterElement#asType
70
70
* @see VariableElement#asType
71
+ * @see RecordComponentElement#asType
71
72
*/
72
73
TypeMirror asType ();
73
74
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2019, 2021 , Oracle and/or its affiliates. All rights reserved.
2
+ * Copyright (c) 2019, 2023 , Oracle and/or its affiliates. All rights reserved.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* This code is free software; you can redistribute it and/or modify it
25
25
26
26
package javax .lang .model .element ;
27
27
28
+ import javax .lang .model .type .TypeMirror ;
29
+ import javax .lang .model .type .TypeKind ;
30
+
28
31
/**
29
32
* Represents a record component.
30
33
*
31
34
* @jls 8.10.1 Record Components
32
35
* @since 16
33
36
*/
34
37
public interface RecordComponentElement extends Element {
38
+ /**
39
+ * {@return the type of this record component}
40
+ *
41
+ * Note that the types of record components range over {@linkplain
42
+ * TypeKind many kinds} of types, including primitive types,
43
+ * declared types, and array types.
44
+ *
45
+ * @see TypeKind
46
+ */
47
+ @ Override
48
+ TypeMirror asType ();
49
+
35
50
/**
36
51
* {@return the enclosing element of this record component}
37
52
*
You can’t perform that action at this time.
0 commit comments