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 {
6868 * @see TypeElement#asType
6969 * @see TypeParameterElement#asType
7070 * @see VariableElement#asType
71+ * @see RecordComponentElement#asType
7172 */
7273 TypeMirror asType ();
7374
Original file line number Diff line number Diff line change 11/*
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.
33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44 *
55 * This code is free software; you can redistribute it and/or modify it
2525
2626package javax .lang .model .element ;
2727
28+ import javax .lang .model .type .TypeMirror ;
29+ import javax .lang .model .type .TypeKind ;
30+
2831/**
2932 * Represents a record component.
3033 *
3134 * @jls 8.10.1 Record Components
3235 * @since 16
3336 */
3437public 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+
3550 /**
3651 * {@return the enclosing element of this record component}
3752 *
You can’t perform that action at this time.
0 commit comments