Class VariableDeclarator

    • Constructor Detail

      • VariableDeclarator

        public VariableDeclarator()
      • VariableDeclarator

        public VariableDeclarator​(Type type,
                                  String variableName)
      • VariableDeclarator

        public VariableDeclarator​(Type type,
                                  SimpleName name)
      • VariableDeclarator

        public VariableDeclarator​(Type type,
                                  String variableName,
                                  Expression initializer)
      • VariableDeclarator

        public VariableDeclarator​(Type type,
                                  SimpleName name,
                                  Expression initializer)
        Defines the declaration of a variable.
        Parameters:
        name - The identifier for this variable. IE. The variables name.
        initializer - What this variable should be initialized to. An AssignExpr is unnecessary as the = operator is already added.
      • VariableDeclarator

        public VariableDeclarator​(TokenRange tokenRange,
                                  Type type,
                                  SimpleName name,
                                  Expression initializer)
        This constructor is used by the parser and is considered private.