java.lang.Object
org.jfuncmachine.compiler.model.SourceElement
org.jfuncmachine.compiler.model.expr.Catch

public class Catch extends SourceElement
Define a catch clause for a try-catch block
  • Field Details

    • catchClass

      public final String catchClass
      The class of exception to catch
    • catchVariable

      public final String catchVariable
      The variable that the exception is stored in
    • body

      public final Expression body
      The body of the catch block
  • Constructor Details

    • Catch

      public Catch(String catchClass, String catchVariable, Expression body)
      Create a new catch clause
      Parameters:
      catchClass - The class of exception to catch
      catchVariable - The variable that the exception is stored in
      body - The body of the catch block
    • Catch

      public Catch(String catchClass, String catchVariable, Expression body, String filename, int lineNumber)
      Create a new catch clause
      Parameters:
      catchClass - The class of exception to catch
      catchVariable - The variable that the exception is stored in
      body - The body of the catch block
      filename - The source filename this expression is associated with
      lineNumber - The source line number this expression is associated with