code: public static ADefPatternBind newADefPatternBind(ILexLocation location,
  			Object patternOrBind)
  	{
  
  		ADefPatternBind result = new ADefPatternBind();
  		result.setLocation(location);
  
  		if (patternOrBind instanceof PPattern)
  		{
  			result.setPattern((PPattern) patternOrBind);
  			result.setBind(null);
  		} else if (patternOrBind instanceof PBind)
  		{
  			result.setPattern(null);
  			result.setBind((PBind) patternOrBind);
  		} else
  		{
  			throw new InternalException(3, "PatternBind passed "
  					+ patternOrBind.getClass().getName());
  		}
  
  		return result;
  	}
docs: /*
  Constructors for each type