|
|
|
@ -1,5 +1,5 @@ |
|
|
|
/* |
|
|
|
/* |
|
|
|
* Copyright 2002-2014 the original author or authors. |
|
|
|
* Copyright 2002-2017 the original author or authors. |
|
|
|
* |
|
|
|
* |
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
@ -63,19 +63,18 @@ public interface ClassMetadata { |
|
|
|
boolean isFinal(); |
|
|
|
boolean isFinal(); |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Determine whether the underlying class is independent, |
|
|
|
* Determine whether the underlying class is independent, i.e. whether |
|
|
|
* i.e. whether it is a top-level class or a nested class
|
|
|
|
* it is a top-level class or a nested class (static inner class) that |
|
|
|
* (static inner class) that can be constructed independent |
|
|
|
* can be constructed independently from an enclosing class. |
|
|
|
* from an enclosing class. |
|
|
|
|
|
|
|
*/ |
|
|
|
*/ |
|
|
|
boolean isIndependent(); |
|
|
|
boolean isIndependent(); |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Return whether the underlying class has an enclosing class
|
|
|
|
* Return whether the underlying class is declared within an enclosing |
|
|
|
* (i.e. the underlying class is an inner/nested class or |
|
|
|
* class (i.e. the underlying class is an inner/nested class or a |
|
|
|
* a local class within a method). |
|
|
|
* local class within a method). |
|
|
|
* <p>If this method returns {@code false}, then the |
|
|
|
* <p>If this method returns {@code false}, then the underlying |
|
|
|
* underlying class is a top-level class. |
|
|
|
* class is a top-level class. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
boolean hasEnclosingClass(); |
|
|
|
boolean hasEnclosingClass(); |
|
|
|
|
|
|
|
|
|
|
|
|