/// ------------------------------------------------------------------------------------------- /// <summary> /// Get GetAttributes Values from the node /// /// <list> /// </list> /// </summary> /// <param name="tree">Antlr Tree</param> /// <returns>ATTRIB</returns> /// ------------------------------------------------------------------------------------------- /// private ClassAttribute GetAttribValue(TreeNode tree) { try { ClassAttribute classAttribute = new ClassAttribute(); if (tree.Nodes.Count == 1) { classAttribute.SetAttribute(tree.FirstNode.Text); } else if (tree.Nodes.Count == 3) { classAttribute.SetAttribute(tree.Nodes[0].Text, tree.Nodes[1].Text, tree.Nodes[2].Text); } return(classAttribute); } catch { return(null); } }
protected void SetUp() { target = new ClassAttribute(); }
/// ------------------------------------------------------------------------------------------- /// <summary> /// Get GetAttributes Values from the node /// /// <list> /// </list> /// </summary> /// <param name="tree">Antlr Tree</param> /// <returns>ATTRIB</returns> /// ------------------------------------------------------------------------------------------- /// private ClassAttribute GetAttribValue(TreeNode tree) { try { ClassAttribute classAttribute = new ClassAttribute(); if (tree.Nodes.Count == 1) { classAttribute.SetAttribute(tree.FirstNode.Text); } else if (tree.Nodes.Count == 3) { classAttribute.SetAttribute(tree.Nodes[0].Text, tree.Nodes[1].Text, tree.Nodes[2].Text); } return (classAttribute); } catch { return (null); } }