public static Matcher enumDefinition() {
    return new Matcher() {
      @Override public boolean matches(Node node, NodeMetadata metadata) {
        JSType jsType = node.getJSType();
        return jsType != null && jsType.isEnumType();
      }
    };
  }
public static Matcher enumDefinition ( ) { return new Matcher ( ) { @ Override public boolean matches ( Node node , NodeMetadata metadata ) { JSType jsType = node . getJSType ( ) ; return jsType != null && jsType . isEnumType ( ) ; } } ; }
Returns a Matcher that matches definitions of any enum.