public class PackagePrefixFilter extends AbstractFilter<JElement> implements JElementFilter
Constructor and Description |
---|
PackagePrefixFilter(JPackage prefix) |
PackagePrefixFilter(Package prefix) |
PackagePrefixFilter(String prefix) |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(JElement element)
Tests if a specified element should be matched.
|
String |
getPrefix() |
targetType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
targetType
public PackagePrefixFilter(String prefix)
public PackagePrefixFilter(Package prefix)
public PackagePrefixFilter(JPackage prefix)
public boolean accept(JElement element)
JElementFilter
accept
in interface JElementFilter
accept
in interface Filter<JElement>
element
- the element bing testedtrue
if and only if the element should be included in the list; false
otherwise.Copyright © 2010–2018 Jadira Systems. All rights reserved.