Class Definition

  • Direct Known Subclasses:
    Field, Parameter, TypeName, Variable

    public abstract class Definition
    extends Object
    Super class of all possible identifier definitions
    Version:
    0.1
    Author:
    Michael Bouschen
    • Field Detail

      • messages

        protected static final ResourceBundle messages
        I18N support
      • scope

        protected int scope
        Scope level of the definition
      • type

        protected Type type
        Type of the identifier
    • Constructor Detail

      • Definition

        public Definition​(Type type)
        Creates a new definition. A definition contains at least the type of the identifier.
        Parameters:
        type - type of the declared identifier
    • Method Detail

      • setScope

        public void setScope​(int scope)
        Set the scope of the identifier's definition.
      • getScope

        public int getScope()
        Returns the scope of the identifier's definition.
      • getType

        public Type getType()
        Returns the type of the identifiers's definition.
      • getName

        public abstract String getName()
        Returns the name of the definition.