langtools/src/share/classes/javax/lang/model/util/Elements.java
changeset 15714 d9a83ab62853
parent 13844 56339cf983a3
child 17548 b0a4fd89079c
equal deleted inserted replaced
15713:55f55d4f5f9f 15714:d9a83ab62853
     1 /*
     1 /*
     2  * Copyright (c) 2005, 2012, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   247      * argument.
   247      * argument.
   248      *
   248      *
   249      * @param cs the character sequence to return as a name
   249      * @param cs the character sequence to return as a name
   250      */
   250      */
   251     Name getName(CharSequence cs);
   251     Name getName(CharSequence cs);
       
   252 
       
   253     /**
       
   254      * Returns {@code true} if the type element is a functional interface, {@code false} otherwise.
       
   255      *
       
   256      * @param type the type element being examined
       
   257      * @return {@code true} if the element is a functional interface, {@code false} otherwise
       
   258      * @jls 9.8 Functional Interfaces
       
   259      * @since 1.8
       
   260      */
       
   261     boolean isFunctionalInterface(TypeElement type);
   252 }
   262 }