< prev index next >
src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/objects/annotations/Constructor.java
Print this page
rev 1309 : 8085885: address Javadoc warnings in Nashorn source code
*** 1,7 ****
/*
! * Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
--- 1,7 ----
/*
! * Copyright (c) 2010, 2015, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
*** 35,49 ****
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface Constructor {
/**
! * Name of the constructor function. If empty, the name is inferred.
*/
public String name() default "";
/**
! * The arity of the function. By default computed from the method signature.
! * Note that -1 means varargs. So, -2 is used as invalid arity.
*/
public int arity() default -2;
}
--- 35,51 ----
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface Constructor {
/**
! * @return the name of the constructor function. If empty, the name is
! * inferred.
*/
public String name() default "";
/**
! * @return the arity of the function. By default computed from the method
! * signature. Note that -1 means varargs. So, -2 is used as invalid
! * arity.
*/
public int arity() default -2;
}
< prev index next >