Examples of PropertyNode


Examples of org.codehaus.groovy.ast.PropertyNode

        assertField(fooClass, "z", Modifier.PRIVATE, ClassHelper.STRING_TYPE);
    }

    public void testProperties() throws Exception {
        ClassNode classNode = new ClassNode("Foo", ACC_PUBLIC + ACC_SUPER, ClassHelper.OBJECT_TYPE);
        classNode.addProperty(new PropertyNode("bar", ACC_PUBLIC, ClassHelper.STRING_TYPE, classNode, null, null, null));

        Class fooClass = loadClass(classNode);
        assertTrue("Loaded a new class", fooClass != null);

        Object bean = fooClass.newInstance();
View Full Code Here

Examples of org.codehaus.groovy.ast.PropertyNode

        assertSetProperty(bean, "bar", "newValue");
    }

    public void testInheritedProperties() throws Exception {
        ClassNode classNode = new ClassNode("Foo", ACC_PUBLIC + ACC_SUPER, ClassHelper.make(DummyBean.class));
        classNode.addProperty(new PropertyNode("bar", ACC_PUBLIC, ClassHelper.STRING_TYPE, classNode, null, null, null));

        Class fooClass = loadClass(classNode);
        assertTrue("Loaded a new class", fooClass != null);

        Object bean = fooClass.newInstance();
View Full Code Here

Examples of org.codehaus.groovy.ast.PropertyNode

    }

    private void visitFieldNode(FieldNode fNode) {
        final ClassNode cNode = fNode.getDeclaringClass();
        final List<PropertyNode> pList = cNode.getProperties();
        PropertyNode foundProp = null;
        for (PropertyNode pNode : pList) {
            if (pNode.getName().equals(fNode.getName())) {
                foundProp = pNode;
                break;
            }
View Full Code Here

Examples of org.openbp.cockpit.plugins.finder.treemodel.PropertyNode

  /**
   * @see org.openbp.cockpit.plugins.finder.treemodel.DataMapper#createPropertyNode(int)
   */
  public PropertyNode createPropertyNode(int level)
  {
    PropertyNode node = new PropertyNode();
    node.setNodeMapper(nodeMapper);
    node.setPropertyData(list.get(level));
    return node;
  }
View Full Code Here

Examples of org.openbp.jaspira.propertybrowser.nodes.PropertyNode

     * true: Change to read only.<br>
     * false: Change to modifyable
     */
    private void changeReadOnlyModeOfPropertyDescriptor(ObjectNode rootNode, String propertyName, boolean readOnly)
    {
      PropertyNode propertyNode = (PropertyNode) rootNode.findNodeForProperty(propertyName);
      if (propertyNode != null)
      {
        // The clone method of the ObjectNode doesn't clone
        // the property descriptor, so we have to do this manually.
        PropertyDescriptor pd = propertyNode.getPropertyDescriptor();
        try
        {
          pd = (PropertyDescriptor) pd.clone();
          pd.setReadOnly(readOnly);
          propertyNode.setPropertyDescriptor(pd);
        }
        catch (CloneNotSupportedException e)
        {
          ExceptionUtil.printTrace(e);
        }
View Full Code Here

Examples of org.wymiwyg.rdf.graphs.PropertyNode

   */
  public static Triple replaceInTriple(Triple triple, Node origNode,
      Node replacementNode) {
    Node subject = triple.getSubject();
    Node object = triple.getObject();
    PropertyNode predicate = triple.getPredicate();
    if (subject.equals(origNode)) {
      subject = replacementNode;
    }
    if (object.equals(origNode)) {
      object = replacementNode;
View Full Code Here

Examples of weka.experiment.PropertyNode

  setVisible(false);
      }
    });
    m_RootObject = rootObject;
    m_Root = new DefaultMutableTreeNode(
       new PropertyNode(m_RootObject));
    createNodes(m_Root);
   
    Container c = getContentPane();
    c.setLayout(new BorderLayout());
    //    setBorder(BorderFactory.createTitledBorder("Select a property"));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.