public NestedPropertyImpl(CommonTree tree, IReadOnlyDictionary <string, string> prefixMap)
     : base((CommonTree)((CommonTree)tree.GetChild(0)).GetChild(0), PropertyType.NESTED_PROPERTY,
            prefixMap, ((CommonTree)tree.GetChild(0)).Token.Type == OslcSelectParser.WILDCARD)
 {
     this.tree = tree;
     children  = PropertiesImpl.CreateChildren((CommonTree)tree.GetChild(1), prefixMap);
 }
Пример #2
0
        public override string ToString()
        {
            StringBuilder buffer = new StringBuilder();

            buffer.Append(IsWildcard ?
                          "*" :
                          Identifier.ToString());
            buffer.Append('{');

            PropertiesImpl.ChildrenToString(buffer, Children);

            buffer.Append('}');

            return(buffer.ToString());
        }