- All Superinterfaces:
Member
@OVLInaccessible public interface Constructor extends Member
This interface represents a constructor of an OVL class.
- Author:
- Dr. Peter Droste, Omix Visualization
-
Method Summary
Modifier and Type Method Description ClassType[]
getExceptionTypes()
Returns the types of the exceptions thrown by this constructor.ClassType[]
getParameterTypes()
Returns the types of the constructor parameters.boolean
isPrivate()
Returnstrue
if this constructor was definedfinal
.boolean
isProtected()
Returnstrue
if this constructor was definedfinal
.boolean
isPublic()
Returnstrue
if this constructor was definedfinal
.OVLObject
newInstance(Object @IsVarType ... params)
This method invokes the constructor and returns a new instance of the OVL class.Methods inherited from interface omix.lang.reflect.Member
getAnnotation, getAnnotations, getAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotations, getDeclaredAnnotationsByType, getName, getNamespace, isAnnotationPresent
-
Method Details
-
getParameterTypes
ClassType[] getParameterTypes()Returns the types of the constructor parameters.- Returns:
- parameter types
-
getExceptionTypes
ClassType[] getExceptionTypes()Returns the types of the exceptions thrown by this constructor.- Returns:
- exception types
-
isPrivate
boolean isPrivate()Returnstrue
if this constructor was definedfinal
.- Returns:
- has final modifier?
-
isProtected
boolean isProtected()Returnstrue
if this constructor was definedfinal
.- Returns:
- has final modifier?
-
isPublic
boolean isPublic()Returnstrue
if this constructor was definedfinal
.- Returns:
- has final modifier?
-
newInstance
OVLObject newInstance(Object @IsVarType ... params) throws IllegalAccessException, IllegalArgumentException, InvocationTargetExceptionThis method invokes the constructor and returns a new instance of the OVL class.- Parameters:
params
- a list of parameters matching togetParameterTypes()
- Returns:
- the new OVL object
- Throws:
IllegalAccessException
- if this constructor is inaccessibleIllegalArgumentException
- if the number or type of arguments is invalidInvocationTargetException
- nesting one ofgetExceptionTypes()
-