Esempio n. 1
0
 /** Returns whether the given visitor accepter has been marked as possibly being used. */
 protected boolean isPossiblyUsed(VisitorAccepter visitorAccepter) {
   return visitorAccepter.getVisitorInfo() == POSSIBLY_USED;
 }
Esempio n. 2
0
 /** Clears any usage marks from the given visitor accepter. */
 protected void markAsUnused(VisitorAccepter visitorAccepter) {
   visitorAccepter.setVisitorInfo(null);
 }
Esempio n. 3
0
 /** Returns whether the given visitor accepter should still be marked as possibly being used. */
 protected boolean shouldBeMarkedAsPossiblyUsed(VisitorAccepter visitorAccepter) {
   return visitorAccepter.getVisitorInfo() != USED
       && visitorAccepter.getVisitorInfo() != POSSIBLY_USED;
 }
Esempio n. 4
0
 /** Marks the given visitor accepter as possibly being used. */
 protected void markAsPossiblyUsed(VisitorAccepter visitorAccepter) {
   visitorAccepter.setVisitorInfo(POSSIBLY_USED);
 }
Esempio n. 5
0
 /** Returns whether the given visitor accepter has been marked as being used. */
 protected boolean isUsed(VisitorAccepter visitorAccepter) {
   return visitorAccepter.getVisitorInfo() == USED;
 }
Esempio n. 6
0
 /** Returns whether the given visitor accepter should still be marked as being used. */
 protected boolean shouldBeMarkedAsUsed(VisitorAccepter visitorAccepter) {
   return visitorAccepter.getVisitorInfo() != USED;
 }
Esempio n. 7
0
 /** Marks the given visitor accepter as being used. */
 protected void markAsUsed(VisitorAccepter visitorAccepter) {
   visitorAccepter.setVisitorInfo(USED);
 }