public Class getImport(String name) {
   if (imports != null && imports.containsKey(name) && imports.get(name) instanceof Class) {
     return (Class) imports.get(name);
   }
   return (Class)
       (AbstractParser.LITERALS.get(name) instanceof Class
           ? AbstractParser.LITERALS.get(name)
           : null);
 }
Beispiel #2
0
 public static Class getContextFreeImport(String name) {
   return (Class) AbstractParser.LITERALS.get(name);
 }
Beispiel #3
0
 public static boolean hasContextFreeImport(String name) {
   return AbstractParser.LITERALS.containsKey(name)
       && AbstractParser.LITERALS.get(name) instanceof Class;
 }
 public Object getStaticOrClassImport(String name) {
   return (imports != null && imports.containsKey(name)
       ? imports.get(name)
       : AbstractParser.LITERALS.get(name));
 }