Package games.stendhal.common.parser
Class NameSearch
java.lang.Object
games.stendhal.common.parser.NameSearch
Returns structure for Sentence.findMatchingName().
- Author:
- Martin Fuchs
-
Method Summary
-
Method Details
-
search
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
- Returns:
- the name
-
getAmount
public int getAmount()- Returns:
- amount of items
-