FileDocCategorySizeDatePackage
nonassoc_action.javaAPI DocJava SE 5 API1954Fri Aug 26 14:54:54 BST 2005com.sun.java_cup.internal

nonassoc_action

public class nonassoc_action extends parse_action
This class represents a shift/reduce nonassociative error within the parse table. If action_table element is assign to type nonassoc_action, it cannot be changed, and signifies that there is a conflict between shifting and reducing a production and a terminal that shouldn't be next to each other.
version
last updated: 7/2/96
author
Frank Flannery

Fields Summary
Constructors Summary
public nonassoc_action()
Simple constructor.

	/* don't need to set anything, since it signifies error */
    
Methods Summary
public booleanequals(parse_action other)
Equality test.

      return other != null && other.kind() == NONASSOC;
    
public booleanequals(java.lang.Object other)
Generic equality test.

      if (other instanceof parse_action)
	return equals((parse_action)other);
      else
       return false;
    
public inthashCode()
Compute a hash code.

      /* all objects of this class hash together */
      return 0xCafe321;
    
public intkind()
Quick access to type of action.

return NONASSOC;
public java.lang.StringtoString()
Convert to string.

      return "NONASSOC";