Package org.erlide.engine.model.erlang

Examples of org.erlide.engine.model.erlang.IErlRecordDef


      Object _xblockexpression = null;
      {
        String _record = openResult.getRecord();
        IErlPreprocessorDef _findPreprocessorDef = this.modelFindService.findPreprocessorDef(module, _record,
          ErlElementKind.RECORD_DEF);
        final IErlRecordDef def = ((IErlRecordDef) _findPreprocessorDef);
        boolean _tripleNotEquals = (def != null);
        if (_tripleNotEquals) {
          String _name = openResult.getName();
          return def.getFieldNamed(_name);
        }
        _xblockexpression = null;
      }
      return _xblockexpression;
    } catch (Throwable _e) {
View Full Code Here


                            .getInstance()
                            .getModelFindService()
                            .findPreprocessorDef(getErlProjects(target.getProjects()),
                                    moduleName, a.atomValue(), ErlElementKind.RECORD_DEF);
                    if (pd instanceof IErlRecordDef) {
                        final IErlRecordDef r = (IErlRecordDef) pd;
                        if (r.hasChildren() && r.getChildCount() + 1 == t.arity()) {
                            return r;
                        }
                    }
                } catch (final CoreException e) {
                }
View Full Code Here

        if (o instanceof OtpErlangBinary) {
            final OtpErlangBinary b = (OtpErlangBinary) o;
            return getBinaryValueString(b);
        } else if (o instanceof OtpErlangTuple) {
            if (recordCheck) {
                final IErlRecordDef r = checkRecord(o);
                if (r != null) {
                    return getRecordValueString(r, o);
                }
            }
            final OtpErlangTuple t = (OtpErlangTuple) o;
View Full Code Here

        } else if (element instanceof IErlMacroDef) {
            final IErlMacroDef m = (IErlMacroDef) element;
            final String unquoted = StringUtils.unquote(m.getDefinedName());
            return new MacroPattern(unquoted, limitTo);
        } else if (element instanceof IErlRecordDef) {
            final IErlRecordDef r = (IErlRecordDef) element;
            final String unquoted = StringUtils.unquote(r.getDefinedName());
            return new RecordPattern(unquoted, limitTo);
        } else if (element instanceof IErlFunctionClause) {
            final IErlFunctionClause clause = (IErlFunctionClause) element;
            return getSearchPatternFromErlElementAndLimitTo(clause.getParent(), limitTo);
        } else if (element instanceof IErlAttribute) {
View Full Code Here

TOP

Related Classes of org.erlide.engine.model.erlang.IErlRecordDef

Copyright © 2018 www.massapicom. 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.