Class Behaviors


  • public class Behaviors
    extends java.lang.Object
    Convenience utility methods that operate on Behavior elements
    • Constructor Detail

      • Behaviors

        public Behaviors()
    • Method Detail

      • findBehaviorFor

        @CheckForNull
        public static Behavior findBehaviorFor​(Element element)
        Finds a defining behavior for a given element. Only BehaviorClassifier and BehaviorFeature are taken into account
        Parameters:
        element - element
        Returns:
        behavior
      • isReturnParameter

        public static boolean isReturnParameter​(Parameter parameter)
        Parameters:
        parameter - parameter
        Returns:
        true if given Parameter has return kind