in scala
trait Product

`abstract trait` Product
  `extends` java.lang.Object
  `with` scala.ScalaObject

  The trait `Product` defines access functions for instances of products, in particular case classes.

Author:
  Burak Emir
Version:
  1.0

Direct Known Subclasses:
  NeedsCopy, NeedsCopy, NeedsCopy, ElemEnd, ElemStart, FExp, Attrib, Child, DescOrSelf, NameTest, Exists, Equals, FatalError, ValidationException, SystemID, PublicID, DocType, ParsedEntityDecl, AttListDecl, REQUIRED, ExtDef, ParameterEntityDecl, IMPLIED, ElemDecl, NotationDecl, DEFAULT, AttrDecl, IntDef, UnparsedEntityDecl, PEReference, ELEMENTS, ANY, EMPTY, MIXED, Alt, Sequ, Star, Letter, Wildcard, ElemName, PCDATA, Unparsed, TopScope, Text, ProcInstr, Box, Para, Null, MalformedAttributeException, Group, EntityRef, Comment, Alt, Sequ, Star, Letter, Wildcard, Alt, Sequ, Star, Node, TopIter, Alt, Sequ, Star, AnyTreeRHS, LabelledRHS, EmptyHedgeRHS, AnyHedgeRHS, ConsRHS, DocNil, DocCons, DocNest, DocGroup, DocBreak, DocText, AssertFailed, SingleType, MethodType, ThisType, NoType, NamedType, TypeBounds, NoPrefix, PrefixedType, AppliedType, PolyType, Function, Select, New, Template, ClassDef, DefDef, If, Goto, Apply, Super, Block, ValDef, Assign, Target, TypeApply, This, Literal, Ident, Class, LocalValue, Field, NoSymbol, LabelSymbol, TypeField, RootSymbol, Method, LocalMethod, Ref, Def, UGP, Sum, TIMEOUT, Remove, Update, Include, Reset, Index, NA, Start, End, RedTree, BlackTree, RedTree, BlackTree, ITree, INode, GBLeaf, GBNode, RedTree, BlackTree, NonEmpty, Tuple9, Tuple8, Tuple7, Tuple6, Tuple5, Tuple4, Tuple3, Tuple22, Tuple21, Tuple20, Tuple2, Tuple19, Tuple18, Tuple17, Tuple16, Tuple15, Tuple14, Tuple13, Tuple12, Tuple11, Tuple10, Tuple1, Symbol, Product9, Product8, Product7, Product6, Product5, Product4, Product3, Product22, Product21, Product20, Product2, Product19, Product18, Product17, Product16, Product15, Product14, Product13, Product12, Product11, Product10, Product1, Option, Some, None, ::, Nil, Cell, TypeCast, FunctionCall, Default, Update, Transaction, SetClause, Subquery, Constructor, Insert, UnsupportedFeature, IncompatibleSchema, Database, Node, NamedSend, WakedActor, !, TIMEOUT

Def Summary
`abstract` | `def` arity : scala.Int return k for a product `A(x_1,...,x_k))`
`abstract` | `def` element (n: scala.Int) : scala.Any for a case class `A(x_1,...,x_k))`, returns `x_(i+1)` for `0 <= i < k`
| `def` productPrefix : java.lang.String By default the empty string. Implementations may override this method in order to prepend a string prefix to the result of the toString methods.

Def Detail

`abstract def` arity : scala.Int

  return k for a product `A(x_1,...,x_k))`

`abstract def` element (n: scala.Int): scala.Any

  for a case class `A(x_1,...,x_k))`, returns `x_(i+1)` for `0 <= i < k`

Parameters:
  `n -` the position of the n-th element
Throws:
  `IndexOutOfBoundsException -`
Returns:
  ...

`def` productPrefix : java.lang.String

  By default the empty string. Implementations may override this method in order to prepend a string prefix to the result of the toString methods.