java.lang.reflect
Class Constructor
java.lang.Object
java.lang.reflect.AccessibleObject
java.lang.reflect.Constructor
- All Implemented Interfaces:
- Member
- public final class Constructor
- extends AccessibleObject
- implements Member
Specifications inherited from class Object |
represents objectState <- org.jmlspecs.lang.JMLDataGroup.IT;
public represents _getClass <- \typeof(this); |
Constructor Summary |
(package private) |
Constructor(Class declaringClass,
Class[] parameterTypes,
Class[] checkedExceptions,
int modifiers,
int slot)
|
Constructor
Constructor(Class declaringClass,
Class[] parameterTypes,
Class[] checkedExceptions,
int modifiers,
int slot)
copy
Constructor copy()
getDeclaringClass
public Class getDeclaringClass()
- Specified by:
getDeclaringClass
in interface Member
- Specifications: pure
- also
-
public normal_behavior
ensures \result != null;
getName
public String getName()
- Specified by:
getName
in interface Member
- Specifications: pure
- also
-
public normal_behavior
ensures \result != null;
getModifiers
public int getModifiers()
- Specified by:
getModifiers
in interface Member
- Specifications: pure
getParameterTypes
public Class[] getParameterTypes()
- Specifications: pure
-
public normal_behavior
ensures \result != null;
getExceptionTypes
public Class[] getExceptionTypes()
- Specifications: pure
-
public normal_behavior
ensures \result != null;
equals
public boolean equals(nullable Object obj)
- Overrides:
equals
in class Object
- Specifications: pure
- Specifications inherited from overridden method equals(Object obj) in class Object:
pure -
public normal_behavior
requires obj != null;
ensures (* \result is true when obj is "equal to" this object *);
- also
-
public normal_behavior
requires this == obj;
ensures \result ;
- also
-
public code normal_behavior
requires obj != null;
ensures \result <==> this == obj;
- also
-
diverges false;
ensures obj == null ==> !\result ;
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
- Specifications: pure
- Specifications inherited from overridden method in class Object:
-
public behavior
assignable objectState;
ensures (* \result is a hash code for this object *);
- also
-
public code normal_behavior
assignable \nothing;
toString
public String toString()
- Overrides:
toString
in class Object
- Specifications: pure non_null
- Specifications inherited from overridden method in class Object:
non_null -
public normal_behavior
assignable objectState;
ensures \result != null&&\result .equals(this.theString);
ensures (* \result is a string representation of this object *);
- also
-
public code normal_behavior
assignable \nothing;
ensures \result != null&&(* \result is the instance's class name, followed by an @, followed by the instance's hashcode in hex *);
- also
-
public code model_program { ... }
- implies_that
-
assignable objectState;
ensures \result != null;
newInstance
public Object newInstance(Object[] initargs)
throws InstantiationException,
IllegalAccessException,
IllegalArgumentException,
InvocationTargetException
- Throws:
InstantiationException
IllegalAccessException
IllegalArgumentException
InvocationTargetException
- Specifications: non_null
getSlot
int getSlot()
JML is Copyright (C) 1998-2002 by Iowa State University and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This release depends on code from the MultiJava project and is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.