Class DSFunction

java.lang.Object
org.yamcs.studio.autocomplete.sim.DSFunction
All Implemented Interfaces:
Comparable<DSFunction>

public class DSFunction extends Object implements Comparable<DSFunction>
Definition for a function that can be integrated in the data source language.
  • Constructor Details

    • DSFunction

      public DSFunction(String name, Class<?> returnType, boolean isPure, boolean isVarArgs)
  • Method Details

    • addPolymorphicFunction

      public void addPolymorphicFunction(DSFunction function)
    • isPolymorphic

      public boolean isPolymorphic()
    • addArgument

      public void addArgument(String name, Class<?> type)
    • getNbArgs

      public int getNbArgs()
    • setDescription

      public void setDescription(String description)
    • getDescription

      public String getDescription()
    • getTooltip

      public String getTooltip()
    • setTooltip

      public void setTooltip(String tooltip)
    • getName

      public String getName()
    • getReturnType

      public Class<?> getReturnType()
    • isPure

      public boolean isPure()
    • isVarArgs

      public boolean isVarArgs()
    • getArgumentNames

      public List<String> getArgumentNames()
    • getArgumentTypes

      public List<Class<?>> getArgumentTypes()
    • getPolymorphicFunctions

      public List<DSFunction> getPolymorphicFunctions()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • compareTo

      public int compareTo(DSFunction arg0)
      Specified by:
      compareTo in interface Comparable<DSFunction>