Class Constant

java.lang.Object
cruise.umple.compiler.Constant

public class Constant
extends java.lang.Object
Represents a constant.
  • Constructor Summary

    Constructors 
    Constructor Description
    Constant​(java.lang.String aName, java.lang.String aType, java.lang.String aModifier, java.lang.String aValue)  
  • Method Summary

    Modifier and Type Method Description
    void delete()  
    boolean getIsInternal()
    Issue 322 - by default set internal to false
    java.lang.String getModifier()
    The modifier of the constant.
    java.lang.String getName()
    The name of the constant.
    java.lang.String getType()
    The type of the constant.
    java.lang.String getValue()
    The value of the constant.
    boolean isIsInternal()  
    boolean setIsInternal​(boolean aIsInternal)  
    boolean setModifier​(java.lang.String aModifier)  
    boolean setName​(java.lang.String aName)  
    boolean setType​(java.lang.String aType)  
    boolean setValue​(java.lang.String aValue)  
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Constant

      public Constant​(java.lang.String aName, java.lang.String aType, java.lang.String aModifier, java.lang.String aValue)
  • Method Details

    • setName

      public boolean setName​(java.lang.String aName)
    • setType

      public boolean setType​(java.lang.String aType)
    • setModifier

      public boolean setModifier​(java.lang.String aModifier)
    • setValue

      public boolean setValue​(java.lang.String aValue)
    • setIsInternal

      public boolean setIsInternal​(boolean aIsInternal)
    • getName

      public java.lang.String getName()
      The name of the constant.
    • getType

      public java.lang.String getType()
      The type of the constant.
    • getModifier

      public java.lang.String getModifier()
      The modifier of the constant.
    • getValue

      public java.lang.String getValue()
      The value of the constant.
    • getIsInternal

      public boolean getIsInternal()
      Issue 322 - by default set internal to false
    • isIsInternal

      public boolean isIsInternal()
    • delete

      public void delete()
    • toString

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