Class MethodParameter

java.lang.Object
cruise.umple.compiler.UmpleVariable
cruise.umple.compiler.MethodParameter

public class MethodParameter
extends UmpleVariable
Represents a parameter in a method and its various forms. NEW CLASS****************************************
  • Constructor Details

    • MethodParameter

      public MethodParameter​(java.lang.String aName, java.lang.String aType, java.lang.String aModifier, java.lang.String aValue, boolean aIsAutounique)
    • MethodParameter

      public MethodParameter​(MethodParameter another)
      This is for cloning Note: This code doesn't cover deep cloning. It's a combination of shallow and deep cloning
  • Method Details

    • setIsAutounique

      public boolean setIsAutounique​(boolean aIsAutounique)
    • setIsList

      public boolean setIsList​(boolean aIsList)
    • setIsDerived

      public boolean setIsDerived​(boolean aIsDerived)
    • setIsLazy

      public boolean setIsLazy​(boolean aIsLazy)
    • setIsIvar

      public boolean setIsIvar​(boolean aIsIvar)
    • getIsAutounique

      public boolean getIsAutounique()
      Specifies whether or not the method parameter is auto unique. TODO: should default to false, but constructors would need updating
    • getIsList

      public boolean getIsList()
      Specifies whether or not the method parameter is a list.
    • getIsDerived

      public boolean getIsDerived()
      Specifies whether or not the method parameter is derived.
    • getIsLazy

      public boolean getIsLazy()
      Specifies whether or not the method parameter is lazy.
    • getIsIvar

      public boolean getIsIvar()
      Specifies whether or not the method parameter is ivar.
    • isIsAutounique

      public boolean isIsAutounique()
    • isIsList

      public boolean isIsList()
    • isIsDerived

      public boolean isIsDerived()
    • isIsLazy

      public boolean isIsLazy()
    • isIsIvar

      public boolean isIsIvar()
    • delete

      public void delete()
      Overrides:
      delete in class UmpleVariable
    • getFullType

      public java.lang.String getFullType()
    • clone

      public MethodParameter clone()
      Please maintain this method if you're going to add new features to MethodParameters. This code manually creates a clone of a MethodParameters.
      Overrides:
      clone in class java.lang.Object
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class UmpleVariable