Class CatchMarkerNode

All Implemented Interfaces:
org.plumelib.util.UniqueId

public class CatchMarkerNode extends MarkerNode
A CatchMarkerNode is a marker node for the beginning or end of a catch block.
  • Constructor Details

    • CatchMarkerNode

      public CatchMarkerNode(@Nullable Tree tree, String startOrEnd, TypeMirror catchType, Types types)
      Creates a new CatchMarkerNode.
      Parameters:
      tree - the tree
      startOrEnd - "start" or "end"
      catchType - the type of the exception parameter
      types - the type utilities
  • Method Details

    • getCatchType

      public TypeMirror getCatchType()
      Returns the type of the exception parameter.
      Returns:
      the type of the exception parameter
    • equals

      public boolean equals(@Nullable Object obj)
      Overrides:
      equals in class MarkerNode
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class MarkerNode