Class NameSearch

java.lang.Object
games.stendhal.common.parser.NameSearch

public final class NameSearch extends Object
Returns structure for Sentence.findMatchingName().
Author:
Martin Fuchs
  • Method Details

    • search

      public boolean search(Expression item)
      Searches for item to match the given Expression.
      Parameters:
      item -
      Returns:
      true if we found a match
    • found

      public boolean found()
      Return true if matching name found.
      Returns:
      boolean find flag
    • getName

      public String getName()
      Returns:
      the name
    • getAmount

      public int getAmount()
      Returns:
      amount of items