ilog.rules.bom
Interface IlrMethod
-
- All Superinterfaces:
- IlrMember, IlrMemberWithParameter, IlrModelElement, IlrProperties, IlrTransientProperties
- All Known Subinterfaces:
- IlrConstructor, IlrMutableConstructor, IlrMutableMethod
- All Known Implementing Classes:
- IlrDynamicConstructor, IlrDynamicMethod
public interface IlrMethod extends IlrMemberWithParameter
This interface is used to represent class methods in an object model.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface and Description static interfaceIlrMethod.IlrGenericMethodInfoThis interface provides the information for generic methods and instantiations of these generic methods.
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.StringMETHOD_KIND_PROPERTYstatic java.lang.StringRAW_METHOD_KIND
-
Method Summary
Methods Modifier and Type Method and Description IlrMethod.IlrGenericMethodInfogetGenericInfo()Returns the generic information about this method, ornullif the method is neither a generic nor an instantiation of a generic method.java.lang.reflect.MethodgetJavaMethod()Deprecated.use getNativeMethod instead.java.util.ListgetMethodExceptions()Returns a list of classes that are exceptions that may be thrown by this method.java.lang.reflect.MethodgetNativeMethod()Returns the native method represented by thisIlrMethodornullif otherwise.IlrTypegetReturnType()Returns the return type of the method.booleanisAbstract()Returnstrueif the method is abstract.booleanisConstructor()Returnstrueif the method is a constructor.booleanisMethod()Returnstrueif the method is not a constructor.booleanisSynchronized()Returnstrueif the method is synchronized.booleanvisit(IlrObjectModel.Visitor visitor)Deprecated.use IlrVisitor instead.-
Methods inherited from interface ilog.rules.bom.IlrMemberWithParameter
getParameters
-
Methods inherited from interface ilog.rules.bom.IlrMember
getDeclaringClass, getDomain, getMemberType, isFinal, isPrivate, isProtected, isPublic, isStatic
-
Methods inherited from interface ilog.rules.bom.IlrModelElement
getEnclosingNamespace, getFullyQualifiedName, getName, getObjectModel
-
Methods inherited from interface ilog.rules.bom.IlrProperties
isPropertyPersistent, setPersistentProperty, setPersistentProperty
-
Methods inherited from interface ilog.rules.bom.IlrTransientProperties
getPropertyValue, getPropertyValue, propertyNames, removeProperty, setPropertyValue
-
-
-
-
Field Detail
-
METHOD_KIND_PROPERTY
static final java.lang.String METHOD_KIND_PROPERTY
- See Also:
- Constant Field Values
-
RAW_METHOD_KIND
static final java.lang.String RAW_METHOD_KIND
- See Also:
- Constant Field Values
-
-
Method Detail
-
getGenericInfo
IlrMethod.IlrGenericMethodInfo getGenericInfo()
Returns the generic information about this method, ornullif the method is neither a generic nor an instantiation of a generic method.- Since:
- JRules 6.0
- Returns:
- Generic information, or
null.
-
isAbstract
boolean isAbstract()
Returnstrueif the method is abstract.
-
isSynchronized
boolean isSynchronized()
Returnstrueif the method is synchronized.
-
isMethod
boolean isMethod()
Returnstrueif the method is not a constructor.
-
isConstructor
boolean isConstructor()
Returnstrueif the method is a constructor.
-
getReturnType
IlrType getReturnType()
Returns the return type of the method.
-
getMethodExceptions
java.util.List getMethodExceptions()
Returns a list of classes that are exceptions that may be thrown by this method.Note: If the method throws no exceptions, the return value may be
null, or it may be an empty list.
-
visit
boolean visit(IlrObjectModel.Visitor visitor)
Deprecated. use IlrVisitor instead.Calls the appropriate visitor'svisitXXXmethods for the types referred to by this method (the return type, the parameter types and the exceptions) If a call to one of the visitor'svisitXXXmethods returnsfalsethen this method immediately returns the valuefalse. Otherwisetrueis returned after all of the elements have been visited.- Parameters:
visitor- A visitor.- Returns:
trueif the method has been entirely visited.
-
getJavaMethod
java.lang.reflect.Method getJavaMethod()
Deprecated. use getNativeMethod instead.Returns the Java method currently being reflected ornull.
-
getNativeMethod
java.lang.reflect.Method getNativeMethod()
Returns the native method represented by thisIlrMethodornullif otherwise.- Since:
- JRules 5.0
-
-