nashorn/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/api/tree/IdentifierTree.java
changeset 39662 e2b36a3779b9
parent 35325 7624a7d7e661
equal deleted inserted replaced
39604:8e45018bde9d 39662:e2b36a3779b9
    40      * Returns the name of this identifier.
    40      * Returns the name of this identifier.
    41      *
    41      *
    42      * @return the name of this identifier
    42      * @return the name of this identifier
    43      */
    43      */
    44     String getName();
    44     String getName();
       
    45 
       
    46     /**
       
    47      * Is this a rest parameter for a function or rest elements of an array?
       
    48      *
       
    49      * @return true if this is a rest parameter
       
    50      */
       
    51     boolean isRestParameter();
       
    52 
       
    53     /**
       
    54      * Is this super identifier?
       
    55      *
       
    56      * @return true if this is super identifier
       
    57      */
       
    58     boolean isSuper();
       
    59 
       
    60     /**
       
    61      * Is this 'this' identifier?
       
    62      *
       
    63      * @return true if this is 'this' identifier
       
    64      */
       
    65     boolean isThis();
       
    66 
       
    67     /**
       
    68      * Is this "*" used in module export entry?
       
    69      *
       
    70      * @return true if this "*" used in module export entry?
       
    71      */
       
    72     boolean isStar();
       
    73 
       
    74     /**
       
    75      * Is this "default" used in module export entry?
       
    76      *
       
    77      * @return true if this 'default' used in module export entry?
       
    78      */
       
    79     boolean isDefault();
       
    80 
       
    81     /**
       
    82      * Is this "*default*" used in module export entry?
       
    83      *
       
    84      * @return true if this '*default*' used in module export entry?
       
    85      */
       
    86     boolean isStarDefaultStar();
    45 }
    87 }