예제 #1
0
 @SuppressWarnings("null")
 public String toString(final int flags) {
   final Noun name = info.names[matchedPattern];
   return baby.isTrue()
       ? m_baby.toString(name, flags)
       : baby.isFalse() ? m_adult.toString(name, flags) : name.toString(flags);
 }
예제 #2
0
 /**
  * Prints errors.
  *
  * @param s String with optional indefinite article at the beginning
  * @return The parsed entity data
  */
 @SuppressWarnings("null")
 @Nullable
 public static final EntityData<?> parse(final String s) {
   return SkriptParser.parseStatic(Noun.stripIndefiniteArticle(s), infos.iterator(), null);
 }