src/share/classes/javax/lang/model/util/Elements.java

changeset 1559
01af1b5c631d
parent 1326
30c36e23f154
child 1725
e8987ce7fb4b
     1.1 --- a/src/share/classes/javax/lang/model/util/Elements.java	Fri Feb 08 17:35:16 2013 -0800
     1.2 +++ b/src/share/classes/javax/lang/model/util/Elements.java	Mon Feb 11 13:37:41 2013 -0800
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 2005, 2012, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
     1.7   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.8   *
     1.9   * This code is free software; you can redistribute it and/or modify it
    1.10 @@ -249,4 +249,14 @@
    1.11       * @param cs the character sequence to return as a name
    1.12       */
    1.13      Name getName(CharSequence cs);
    1.14 +
    1.15 +    /**
    1.16 +     * Returns {@code true} if the type element is a functional interface, {@code false} otherwise.
    1.17 +     *
    1.18 +     * @param type the type element being examined
    1.19 +     * @return {@code true} if the element is a functional interface, {@code false} otherwise
    1.20 +     * @jls 9.8 Functional Interfaces
    1.21 +     * @since 1.8
    1.22 +     */
    1.23 +    boolean isFunctionalInterface(TypeElement type);
    1.24  }

mercurial