Module dev.civl.abc

Interface FunctionTypeNode

All Superinterfaces:
ASTNode, SizeableNode, TypeNode

public interface FunctionTypeNode extends TypeNode
  • Method Details

    • hasIdentifierList

      boolean hasIdentifierList()
    • getReturnType

      TypeNode getReturnType()
      The return type of this function. Non-null.
      Returns:
      the return type
    • setReturnType

      void setReturnType(TypeNode type)
    • hasVariableArgs

      boolean hasVariableArgs()
      A function that takes a variable number of arguments will have an ellipsis occur at the end of its argument list.
      Returns:
      true iff this function takes a variable number of arguments
    • setVariableArgs

      void setVariableArgs(boolean value)
    • getParameters

      The sequence of formal parameter declarations for this function type. An identifier list is represented by a sequence of declarations in which all components other than the identifiers are null.
      Returns:
      sequence of parameter declarations
    • setParameters

      void setParameters(SequenceNode<VariableDeclarationNode> parameters)
    • copy

      Description copied from interface: ASTNode
      Returns a deep copy of this AST node. The node and all of its descendants will be cloned. The cloning does not copy analysis or attribute information.
      Specified by:
      copy in interface ASTNode
      Specified by:
      copy in interface SizeableNode
      Specified by:
      copy in interface TypeNode
      Returns:
      deep copy of this node