Exemplo n.º 1
0
        private void registerAncestorMemberMethods(String ancestor, Context context, MethodDeclarationMap result)
        {
            IDeclaration actual = context.getRegisteredDeclaration <IDeclaration>(ancestor);

            if (actual == null || !(actual is ConcreteCategoryDeclaration))
            {
                return;
            }
            ConcreteCategoryDeclaration cd = (ConcreteCategoryDeclaration)actual;

            cd.registerMemberMethods(context, result);
        }
Exemplo n.º 2
0
        private static SetterMethodDeclaration findAncestorSetter(String ancestor, Context context, String attrName)
        {
            IDeclaration actual = context.getRegisteredDeclaration <IDeclaration>(ancestor);

            if (actual == null || !(actual is ConcreteCategoryDeclaration))
            {
                return(null);
            }
            ConcreteCategoryDeclaration cd = (ConcreteCategoryDeclaration)actual;

            return(cd.findSetter(context, attrName));
        }
Exemplo n.º 3
0
 private void checkDerived(Context context)
 {
     if (derivedFrom != null)
     {
         foreach (String category in derivedFrom)
         {
             ConcreteCategoryDeclaration cd = context.getRegisteredDeclaration <ConcreteCategoryDeclaration>(category);
             if (cd == null)
             {
                 throw new SyntaxError("Unknown category: \"" + category + "\"");
             }
         }
     }
 }
Exemplo n.º 4
0
 private void DoCollectCategories(Context context, HashSet <String> set, List <String> list)
 {
     if (derivedFrom != null)
     {
         derivedFrom.ForEach((cat) =>
         {
             ConcreteCategoryDeclaration cd = context.getRegisteredDeclaration <ConcreteCategoryDeclaration>(cat);
             cd.DoCollectCategories(context, set, list);
         });
     }
     if (!set.Contains(this.GetName()))
     {
         set.Add(this.GetName());
         list.add(this.GetName());
     }
 }
Exemplo n.º 5
0
 public void check(ConcreteCategoryDeclaration declaration, Context context)
 {
     // TODO Auto-generated method stub
 }