예제 #1
0
        private void WriteModifiers(JEntityDeclaration node2)
        {
            var node = node2.Modifiers;

            if (node.IsPublic)
            {
                Write("public ");
            }
            if (node.IsPrivate)
            {
                Write("private ");
            }
            if (node.IsProtected)
            {
                Write("protected ");
            }
            if (node.IsStatic)
            {
                Write("static ");
            }
            if (node.IsAbstract)
            {
                var ce = node2 as JClassDeclaration;
                var me = node2 as JMethodDeclaration;
                if (ce != null && ce.IsInterface)
                {
                }
                else if (me != null && me.MethodDefinition != null && me.MethodDefinition.DeclaringTypeDefinition.IsInterface())
                {
                }
                else
                {
                    Write("abstract ");
                }
            }
        }
예제 #2
0
 public void VisitEntityDeclaration(JEntityDeclaration node)
 {
     throw new NotImplementedException();
 }