Examples of atomValue()


Examples of com.ericsson.otp.erlang.OtpErlangAtom.atomValue()

                    ((MatchSpec) getValue()).setMsObject(tuple.elementAt(1));
                    return null;
                }
                // incorrect match spec
                final OtpErlangAtom errorType = (OtpErlangAtom) tuple.elementAt(1);
                if (errorType.atomValue().equals("standard_info")) {
                    final OtpErlangTuple errorTuple = (OtpErlangTuple) tuple.elementAt(2);
                    final StringBuilder builder = new StringBuilder("Line ");
                    builder.append(errorTuple.elementAt(0)).append(": ");
                    final OtpErlangList errorList = (OtpErlangList) errorTuple
                            .elementAt(2);
View Full Code Here

Examples of com.ericsson.otp.erlang.OtpErlangAtom.atomValue()

                    if (errorList.elementAt(1) instanceof OtpErlangString) {
                        builder.append(((OtpErlangString) errorList.elementAt(1))
                                .stringValue());
                    }
                    return builder.toString();
                } else if (errorType.atomValue().equals("not_fun")) {
                    return "Given expression is not a function";
                } else if (errorType.atomValue().equals("unbound_var")) {
                    final StringBuilder builder = new StringBuilder("Unbound variable: ");
                    builder.append(tuple.elementAt(2));
                    return builder.toString();
View Full Code Here

Examples of com.ericsson.otp.erlang.OtpErlangAtom.atomValue()

                                .stringValue());
                    }
                    return builder.toString();
                } else if (errorType.atomValue().equals("not_fun")) {
                    return "Given expression is not a function";
                } else if (errorType.atomValue().equals("unbound_var")) {
                    final StringBuilder builder = new StringBuilder("Unbound variable: ");
                    builder.append(tuple.elementAt(2));
                    return builder.toString();
                } else {
                    return tuple.elementAt(2).toString();
View Full Code Here

Examples of com.ericsson.otp.erlang.OtpErlangAtom.atomValue()

     *         otherwise
     */
    public boolean isTracingFinished(final OtpErlangObject message) {
        if (message instanceof OtpErlangAtom) {
            final OtpErlangAtom atom = (OtpErlangAtom) message;
            if (atom.atomValue().equals(ATOM_STOP_TRACING)) {
                return true;
            }
        }
        return false;
    }
View Full Code Here

Examples of com.ericsson.otp.erlang.OtpErlangAtom.atomValue()

    public OtpErlangObject getErrorReson(final OtpErlangObject message) {
        if (message instanceof OtpErlangTuple) {
            final OtpErlangTuple tuple = (OtpErlangTuple) message;
            if (tuple.elementAt(0) instanceof OtpErlangAtom) {
                final OtpErlangAtom atom = (OtpErlangAtom) tuple.elementAt(0);
                if (atom.atomValue().equals(ATOM_ERROR_LOADING)) {
                    return tuple.elementAt(1);
                }
            }
        }
        return null;
View Full Code Here

Examples of com.ericsson.otp.erlang.OtpErlangAtom.atomValue()

                    final OtpErlangAtom traceType = (OtpErlangAtom) tuple
                            .elementAt(INDEX_TRACE_TYPE);
                    lastTraceDate = readDateTuple((OtpErlangTuple) tuple.elementAt(tuple
                            .arity() - 1));

                    switch (TraceType.valueOf(traceType.atomValue().toUpperCase())) {
                    case CALL:
                        return processCallTrace("Call", tuple);
                    case EXCEPTION_FROM:
                        return processExceptionFrom("Exception", tuple);
                    case EXIT:
View Full Code Here

Examples of com.ericsson.otp.erlang.OtpErlangAtom.atomValue()

            final TreeNode moduleNameNode = new ModuleNode(moduleName.atomValue());
            moduleNameNode.setLabel("module: " + moduleName);

            // function name node
            final TreeNode functionNameNode = new FunctionNode(moduleName.atomValue(),
                    functionName.atomValue(), arityValue);
            functionNameNode.setLabel("function: " + functionName);

            node.addChildren(moduleNameNode, functionNameNode, argsNode);
            lastFunctionDescription = label + moduleName + ":" + functionName + "/"
                    + arityValue;
View Full Code Here

Examples of com.ericsson.otp.erlang.OtpErlangAtom.atomValue()

                } else {
                    return error;
                }
            } else if (arequest instanceof OtpErlangAtom) {
                final OtpErlangAtom tag = (OtpErlangAtom) arequest;
                if ("getopts".equals(tag.atomValue())) {
                    return callback.getOpts();
                }
                return error;
            } else {
                return error;
View Full Code Here

Examples of com.ericsson.otp.erlang.OtpErlangAtom.atomValue()

            try {
                stackFrameNo = n.intValue();
            } catch (final OtpErlangRangeException e) {
                stackFrameNo = -1;
            }
            final String module = m.atomValue();
            int line;
            try {
                line = l.intValue();
            } catch (final OtpErlangRangeException e) {
                line = -1;
View Full Code Here

Examples of com.ericsson.otp.erlang.OtpErlangAtom.atomValue()

            final OtpErlangBinary backtrace = (OtpErlangBinary) backtrace_0.elementAt(1);
            ss = new String(backtrace.binaryValue());
        }
        try {
            ErlLogger.getInstance().erlangLog(module.atomValue() + ".erl",
                    line.uIntValue(), level.atomValue().toUpperCase(), "%s %s",
                    logEvent.toString(), ss);
        } catch (final Exception e) {
            ErlLogger.warn(e);
        }
    }
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.