-
Notifications
You must be signed in to change notification settings - Fork 0
2. Packages
Anindya Bandopadhyay edited this page Jan 18, 2018
·
1 revision
The developer defines package same as we do it in Java but here we have some extra features like pattern matching.
- An asterisk (*), matches any number of characters (including none).
- Two asterisks (**), works like * but crosses directory boundaries. This syntax is generally used for matching complete paths.
- A question mark (?), matches exactly one character.
- Package definition cannot start with wildchar "*".
- If developer defining class then it must end with .class extension. ("org.pojotester.testing.mypack.MyClass.class")
- "org.pojotester.testing.mypack"
- "org.pojotester.testing.mypack.MyClass.class"
- "org.**.mypack"
- "org.pojo*.testing.mypack"
- "org.pojotester.testing.mypack.?yClass.class"