Class MethodCall


  • public class MethodCall
    extends java.lang.Object
    Definition of a Java method call.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.List depvars
      The variables, from which the method call depends.
      protected java.lang.reflect.Method method
      The method.
      protected java.util.List paramsources
      The sources of the parameter values.
      protected OAVJavaType type
      The java object type.
    • Constructor Summary

      Constructors 
      Constructor Description
      MethodCall​(OAVJavaType type, java.lang.reflect.Method method)
      Create a new Java method call.
      MethodCall​(OAVJavaType type, java.lang.reflect.Method method, java.lang.Object[] paramsources)
      Create a new Java method call.
      MethodCall​(OAVJavaType type, java.lang.reflect.Method method, java.util.List paramsources)
      Create a new Java method call.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addParameterSource​(java.lang.Object paramsource)
      Add a new parameter source.
      java.lang.reflect.Method getMethod()
      Get the method.
      java.util.List getParameterSources()
      Get the parameter sources.
      OAVJavaType getType()
      Get the java object type.
      java.util.List getVariables()
      Get the variables.
      java.lang.String toString()
      Get the string representation.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • type

        protected OAVJavaType type
        The java object type.
      • method

        protected java.lang.reflect.Method method
        The method.
      • paramsources

        protected java.util.List paramsources
        The sources of the parameter values.
      • depvars

        protected java.util.List depvars
        The variables, from which the method call depends.
    • Constructor Detail

      • MethodCall

        public MethodCall​(OAVJavaType type,
                          java.lang.reflect.Method method)
        Create a new Java method call.
      • MethodCall

        public MethodCall​(OAVJavaType type,
                          java.lang.reflect.Method method,
                          java.lang.Object[] paramsources)
        Create a new Java method call.
      • MethodCall

        public MethodCall​(OAVJavaType type,
                          java.lang.reflect.Method method,
                          java.util.List paramsources)
        Create a new Java method call.
    • Method Detail

      • getMethod

        public java.lang.reflect.Method getMethod()
        Get the method.
        Returns:
        The method.
      • getType

        public OAVJavaType getType()
        Get the java object type.
        Returns:
        The type.
      • addParameterSource

        public void addParameterSource​(java.lang.Object paramsource)
        Add a new parameter source. Can be - constant value - variable (value) - function call (value)
      • getParameterSources

        public java.util.List getParameterSources()
        Get the parameter sources.
        Returns:
        The param sources.
      • getVariables

        public java.util.List getVariables()
        Get the variables.
        Returns:
        The declared variables.
      • toString

        public java.lang.String toString()
        Get the string representation.
        Overrides:
        toString in class java.lang.Object
        Returns:
        The string representation.