Interface CAstRewriter.CopyKey<Self extends CAstRewriter.CopyKey<Self>>

All Known Implementing Classes:
AstLoopUnwinder.UnwindKey, CAstBasicRewriter.NoKey
Enclosing class:
CAstRewriter<C extends CAstRewriter.RewriteContext<K>,K extends CAstRewriter.CopyKey<K>>

public static interface CAstRewriter.CopyKey<Self extends CAstRewriter.CopyKey<Self>>
interface to be implemented by keys used for cloning sub-trees during the rewrite
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    int
     
    keys have parent pointers, useful for when nesting cloning must occur (e.g., unrolling of nested loops)
  • Method Details

    • hashCode

      int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      boolean equals(Object o)
      Overrides:
      equals in class Object
    • parent

      Self parent()
      keys have parent pointers, useful for when nesting cloning must occur (e.g., unrolling of nested loops)