提交 98e89733 编写于 作者: J jfranck

8001598: Augment ElementType enum for JSR 308

Reviewed-by: darcy
上级 25b48318
/* /*
* Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
...@@ -46,7 +46,7 @@ public enum ElementType { ...@@ -46,7 +46,7 @@ public enum ElementType {
/** Method declaration */ /** Method declaration */
METHOD, METHOD,
/** Parameter declaration */ /** Formal parameter declaration */
PARAMETER, PARAMETER,
/** Constructor declaration */ /** Constructor declaration */
...@@ -59,5 +59,19 @@ public enum ElementType { ...@@ -59,5 +59,19 @@ public enum ElementType {
ANNOTATION_TYPE, ANNOTATION_TYPE,
/** Package declaration */ /** Package declaration */
PACKAGE PACKAGE,
/**
* Type parameter declaration
*
* @since 1.8
*/
TYPE_PARAMETER,
/**
* Use of a type
*
* @since 1.8
*/
TYPE_USE
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册