Class FunctionDeclaration

    • Constructor Detail

      • FunctionDeclaration

        public FunctionDeclaration()
    • Method Detail

      • hasBody

        public boolean hasBody()
      • getSignature

        public java.lang.String getSignature()
      • hasSignature

        public boolean hasSignature​(java.util.List<Type> targetSignature)
      • getThrowsTypes

        public java.util.List<Type> getThrowsTypes()
      • setThrowsTypes

        public void setThrowsTypes​(java.util.List<Type> throwsTypes)
      • getBodyStatementAs

        public <T> @Nullable T getBodyStatementAs​(int i,
                                                  java.lang.Class<T> clazz)
      • setBody

        public void setBody​(Statement body)
      • getVariableDeclarationByName

        public java.util.Optional<VariableDeclaration> getVariableDeclarationByName​(java.lang.String name)
        Looks for a variable declaration by the given name.
        Parameters:
        name - the name of the variable
        Returns:
        an optional value containing the variable declaration if found