public void processAnnotations(Context context, bool processDerivedFrom) { if (processDerivedFrom) { IdentifierList derivedFrom = getDerivedFrom(); if (derivedFrom != null) { foreach (String name in derivedFrom) { CategoryDeclaration decl = context.getRegisteredDeclaration <CategoryDeclaration>(name); if (decl != null) { decl.processAnnotations(context, true); } } } if (Annotations != null) { foreach (Annotation a in Annotations) { a.processCategory(context, this); } } } }
private static bool ancestorHasMethod(String ancestor, Context context, String name) { CategoryDeclaration actual = context.getRegisteredDeclaration <CategoryDeclaration>(ancestor); if (actual == null) { return(false); } return(actual.hasMethod(context, name)); }
public override bool IsAWidget(Context context) { if (derivedFrom == null || derivedFrom.Count != 1) { return(false); } CategoryDeclaration parent = context.getRegisteredDeclaration <CategoryDeclaration>(derivedFrom[0]); return(parent.IsAWidget(context)); }
private static bool isAncestorDerivedFrom(String ancestor, Context context, CategoryType categoryType) { IDeclaration actual = context.getRegisteredDeclaration <IDeclaration>(ancestor); if (actual == null || !(actual is CategoryDeclaration)) { return(false); } CategoryDeclaration cd = (CategoryDeclaration)actual; return(cd.isDerivedFrom(context, categoryType)); }
private HashSet <String> GetAncestorAttributes(Context context, String ancestor) { CategoryDeclaration actual = context.getRegisteredDeclaration <CategoryDeclaration>(ancestor); if (actual == null) { return(null); } else { return(actual.GetAllAttributes(context)); } }
public List <Annotation> GetAllAnnotations(Context context) { List <Annotation> result = new List <Annotation>(); IdentifierList derivedFrom = getDerivedFrom(); if (derivedFrom != null) { foreach (String name in derivedFrom) { CategoryDeclaration decl = context.getRegisteredDeclaration <CategoryDeclaration>(name); if (decl != null) { result.AddRange(decl.GetAllAnnotations(context)); } } } if (Annotations != null) { result.AddRange(Annotations); } return(result); }
public void setMemberOf(CategoryDeclaration declaration) { this.memberOf = declaration; }
public void setMemberOf(CategoryDeclaration declaration) { wrapped.setMemberOf(declaration); }
public WrappingWidgetDeclaration(CategoryDeclaration wrapped) : base(wrapped.GetName(), wrapped.getDerivedFrom()[0], wrapped.GetLocalMethods()) { }