Package cruise.umple.compiler
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 Summary
Constructors Constructor Description MethodParameter(MethodParameter another)
This is for cloning Note: This code doesn't cover deep cloning.MethodParameter(java.lang.String aName, java.lang.String aType, java.lang.String aModifier, java.lang.String aValue, boolean aIsAutounique)
-
Method Summary
Modifier and Type Method Description MethodParameter
clone()
Please maintain this method if you're going to add new features to MethodParameters.void
delete()
java.lang.String
getFullType()
boolean
getIsAutounique()
Specifies whether or not the method parameter is auto unique.boolean
getIsDerived()
Specifies whether or not the method parameter is derived.boolean
getIsIvar()
Specifies whether or not the method parameter is ivar.boolean
getIsLazy()
Specifies whether or not the method parameter is lazy.boolean
getIsList()
Specifies whether or not the method parameter is a list.boolean
isIsAutounique()
boolean
isIsDerived()
boolean
isIsIvar()
boolean
isIsLazy()
boolean
isIsList()
boolean
setIsAutounique(boolean aIsAutounique)
boolean
setIsDerived(boolean aIsDerived)
boolean
setIsIvar(boolean aIsIvar)
boolean
setIsLazy(boolean aIsLazy)
boolean
setIsList(boolean aIsList)
java.lang.String
toString()
Methods inherited from class cruise.umple.compiler.UmpleVariable
getModifier, getName, getTraced, getType, getUpperCaseName, getValue, isImmutable, normalizeValue, setModifier, setName, setType, setValue
-
Constructor Details
-
MethodParameter
public MethodParameter(java.lang.String aName, java.lang.String aType, java.lang.String aModifier, java.lang.String aValue, boolean aIsAutounique) -
MethodParameter
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 classUmpleVariable
-
getFullType
public java.lang.String getFullType() -
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 classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toString
in classUmpleVariable
-