public int GetExpressionContext(out IDebugExpressionContext2 ppExprCxt)
        {
            if (_nativeMethod)
            {
                ppExprCxt = null;
                return(VSConstants.E_FAIL);
            }

            ppExprCxt = new JavaDebugExpressionContext(this);
            return(VSConstants.S_OK);
        }
Exemplo n.º 2
0
        public JavaDebugExpression(JavaDebugExpressionContext context, CommonTree expression, string expressionText)
        {
            Contract.Requires<ArgumentNullException>(context != null, "context");
            Contract.Requires<ArgumentNullException>(expression != null, "expression");
            Contract.Requires<ArgumentNullException>(expressionText != null, "expressionText");
            Contract.Requires<ArgumentException>(!string.IsNullOrEmpty(expressionText));

            _context = context;
            _expression = expression;
            _expressionText = expressionText;
        }
Exemplo n.º 3
0
        public JavaDebugExpression(JavaDebugExpressionContext context, CommonTree expression, string expressionText)
        {
            Contract.Requires <ArgumentNullException>(context != null, "context");
            Contract.Requires <ArgumentNullException>(expression != null, "expression");
            Contract.Requires <ArgumentNullException>(expressionText != null, "expressionText");
            Contract.Requires <ArgumentException>(!string.IsNullOrEmpty(expressionText));

            _context        = context;
            _expression     = expression;
            _expressionText = expressionText;
        }
Exemplo n.º 4
0
        public int GetExpressionContext(out IDebugExpressionContext2 ppExprCxt)
        {
            if (_nativeMethod)
            {
                ppExprCxt = null;
                return VSConstants.E_FAIL;
            }

            ppExprCxt = new JavaDebugExpressionContext(this);
            return VSConstants.S_OK;
        }