Examples of ErlAttribute


Examples of org.erlide.engine.internal.model.erlang.ErlAttribute

            final OtpErlangAtom u = (OtpErlangAtom) o;
            if ("u".equals(u.atomValue())) {
                o = null;
            }
        }
        final ErlAttribute a = new ErlAttribute(module, nameS, o, Util.stringValue(extra));
        setPos(a, pos);
        // a.setParseTree(val);
        return a;
    }
View Full Code Here

Examples of org.erlide.engine.internal.model.erlang.ErlAttribute

    private IErlAttribute addModuleAttribute(final IErlModule module,
            final OtpErlangObject pos, final OtpErlangAtom value,
            final OtpErlangObject extra, final String nameS) {
        final String s = Util.stringValue(extra);
        final ErlAttribute r = new ErlAttribute(module, nameS, value, s);
        setPos(r, pos);
        return r;
    }
View Full Code Here

Examples of org.erlide.engine.internal.model.erlang.ErlAttribute

    @Test
    public void addChild() throws Exception {
        module.open(null);
        final int childCount = module.getChildCount();
        final String aname = "test_a";
        final IErlAttribute attribute = new ErlAttribute(module, aname, null, "test");
        module.addChild(attribute);
        final int childCount2 = module.getChildCount();
        final IErlElement childNamed = module.getChildNamed(aname);
        assertEquals(childCount + 1, childCount2);
        assertEquals(attribute, childNamed);
View Full Code Here

Examples of org.erlide.engine.internal.model.erlang.ErlAttribute

    @Test
    public void setChildren() throws Exception {
        module.open(null);
        final List<IErlElement> children = module.getChildren();
        final String aname = "test_a";
        final IErlAttribute attribute = new ErlAttribute(module, aname, null, "test");
        module.setChildren(Lists.newArrayList(attribute));
        final int childCount = module.getChildCount();
        final List<IErlElement> children2 = module.getChildren();
        final IErlElement element = children2.iterator().next();
        assertEquals(1, childCount);
View Full Code Here

Examples of org.erlide.engine.internal.model.erlang.ErlAttribute

    IPath _tmpPath = this.getTmpPath(projectName);
    return this.createProject(projectName, _tmpPath);
  }
 
  public IErlElement createErlAttribute(final IErlElement parent, final String name, final OtpErlangObject value, final String extra, final int sourceRangeOffset, final int sourceRangeLength) {
    final ErlAttribute attribute = new ErlAttribute(parent, name, value, extra);
    attribute.setSourceRangeOffset(sourceRangeOffset);
    attribute.setSourceRangeLength(sourceRangeLength);
    return attribute;
  }
View Full Code Here

Examples of org.erlide.engine.new_model.internal.ErlAttribute

        boolean _matched = false;
        if (!_matched) {
          if (Objects.equal(_kind, "attribute")) {
            _matched=true;
            String _name = node.getName();
            _switchResult = new ErlAttribute(source, _name);
          }
        }
        if (!_matched) {
          if (Objects.equal(_kind, "function")) {
            _matched=true;
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.