- All Known Subinterfaces:
OVLClass
,OVLItemExtension
public interface AbstractOVLType
Generalizes OVLItemExtension and OVLClass.
- Since:
- Omix 1.3.11
- Author:
- Dr. Peter Droste, Omix Visualization
-
Method Summary
Modifier and Type Method Description boolean
fieldExists(String name)
Determines if field exists in type definition or supertypes.List<String>
getFieldNames()
Returns a list of names of all available fields.List<? extends OVLFieldDefinition>
getFields()
List of field definitions in the type definition.OVLMethodDefinition
getMethod(String name, Class<?>... params)
Returns the method matching the given name and parameter types.List<String>
getMethodNames()
Returns a list of signatures of all available methods.List<? extends OVLMethodDefinition>
getMethods()
List of method definitions in the type definition.String
getName()
The name of the ovl typeString
getNamespace()
Namespace of the defining program.ClassType
getType()
The class type of this ovl type.boolean
methodExists(String name)
Determines if method exists in type definition or supertypes.OVLProgram
program()
Returns the OVL Program, this type was defined in.
-
Method Details
-
getName
String getName()The name of the ovl type- Returns:
- type name
-
getType
ClassType getType()The class type of this ovl type.- Returns:
- type
-
getFieldNames
Returns a list of names of all available fields.- Returns:
- fields
-
fieldExists
Determines if field exists in type definition or supertypes.- Parameters:
name
-- Returns:
- exists?
-
getMethodNames
Returns a list of signatures of all available methods.- Returns:
- methods
-
methodExists
Determines if method exists in type definition or supertypes.- Parameters:
name
- signature of the method- Returns:
- exists?
-
getFields
List<? extends OVLFieldDefinition> getFields()List of field definitions in the type definition.- Returns:
- list of fields
-
getMethods
List<? extends OVLMethodDefinition> getMethods()List of method definitions in the type definition.- Returns:
- list of methods
-
getMethod
OVLMethodDefinition getMethod(String name, Class<?>... params) throws NoSuchMethodException, IllegalAccessExceptionReturns the method matching the given name and parameter types.- Parameters:
params
- parameters of the method- Returns:
- reference object representing the method
- Throws:
NoSuchMethodException
- if method does not existIllegalAccessException
-
program
OVLProgram program()Returns the OVL Program, this type was defined in.- Returns:
- OVL Program
-
getNamespace
String getNamespace()Namespace of the defining program.- Returns:
- namespace
-