< prev index next >

src/java.compiler/share/classes/javax/lang/model/element/VariableElement.java

Print this page

        

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 2005, 2019, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
  * under the terms of the GNU General Public License version 2 only, as
  * published by the Free Software Foundation.  Oracle designates this

@@ -24,12 +24,10 @@
  */
 
 package javax.lang.model.element;
 
 import javax.lang.model.util.Elements;
-import javax.lang.model.type.TypeMirror;
-import javax.lang.model.type.TypeKind;
 
 /**
  * Represents a field, {@code enum} constant, method or constructor
  * parameter, local variable, resource variable, or exception
  * parameter.

@@ -38,23 +36,10 @@
  * @author Scott Seligman
  * @author Peter von der Ah&eacute;
  * @since 1.6
  */
 public interface VariableElement extends Element {
-    /**
-     * Returns the type of this variable.
-     *
-     * Note that the types of variables range over {@linkplain
-     * TypeKind many kinds} of types, including primitive types,
-     * declared types, and array types, among others.
-     *
-     * @return the type of this variable
-     *
-     * @see TypeKind
-     */
-    @Override
-    TypeMirror asType();
 
     /**
      * Returns the value of this variable if this is a {@code final}
      * field initialized to a compile-time constant.  Returns {@code
      * null} otherwise.  The value will be of a primitive type or a
< prev index next >