Examples of IJavaObject


Examples of org.eclipse.jdt.debug.core.IJavaObject

    public boolean providesLogicalStructure(IValue value) {
        if (!(value instanceof IJavaObject)) {
            return false;
        }
        IJavaObject javaValue= (IJavaObject) value;
        try {
            IJavaType type= javaValue.getJavaType();
            if (!(type instanceof IJavaClassType)) {
                return false;
            }
            IJavaClassType classType = (IJavaClassType) type;
            IJavaInterfaceType[] interfaceTypes = classType.getAllInterfaces();
View Full Code Here

Examples of org.eclipse.jdt.debug.core.IJavaObject

    public IValue getLogicalStructure(IValue value) throws CoreException {
        if (!(value instanceof IJavaObject)) {
            return null;
        }
        IJavaObject javaValue = (IJavaObject) value;
        if (!providesLogicalStructure(value)) {
            return null;
        }
        IJavaArray ruleParameters = (IJavaArray) DebugUtil.getValueByExpression("return getRule().getDeclarations();", value);
        List<VariableWrapper> variables = new ArrayList<VariableWrapper>();
View Full Code Here

Examples of org.eclipse.jdt.debug.core.IJavaObject

    public static IValue getValueByExpression(String expression, IValue value) {
        if (!(value instanceof IJavaObject)) {
            return null;
        }
        IJavaObject javaValue = (IJavaObject) value;
        try {
            IJavaType type = javaValue.getJavaType();
            if (!(type instanceof IJavaClassType)) {
                return null;
            }
            IJavaStackFrame stackFrame = getStackFrame(javaValue);
            if (stackFrame == null) {
                return null;
            }

            // find the project the snippets will be compiled in.
            ISourceLocator locator= javaValue.getLaunch().getSourceLocator();
            Object sourceElement= null;
            if (locator instanceof ISourceLookupDirector) {
                String[] sourcePaths = ((IJavaClassType) type).getSourcePaths(null);
                if (sourcePaths != null && sourcePaths.length > 0) {
                    sourceElement = ((ISourceLookupDirector) locator).getSourceElement(sourcePaths[0]);
View Full Code Here

Examples of org.eclipse.jdt.debug.core.IJavaObject

    public boolean providesLogicalStructure(IValue value) {
        if (!(value instanceof IJavaObject)) {
            return false;
        }
        IJavaObject javaValue= (IJavaObject) value;
        try {
            IJavaType type= javaValue.getJavaType();
            if (!(type instanceof IJavaClassType)) {
                return false;
            }
            IJavaClassType classType = (IJavaClassType) type;
            IJavaInterfaceType[] interfaceTypes = classType.getAllInterfaces();
View Full Code Here

Examples of org.eclipse.jdt.debug.core.IJavaObject

    public IValue getLogicalStructure(IValue value) throws CoreException {
        if (!(value instanceof IJavaObject)) {
            return null;
        }
        IJavaObject javaValue = (IJavaObject) value;
        if (!providesLogicalStructure(value)) {
            return null;
        }
        IJavaArray ruleParameters = (IJavaArray) DebugUtil.getValueByExpression("return getRule().getDeclarations();", value);
        List variables = new ArrayList();
View Full Code Here

Examples of org.eclipse.jdt.debug.core.IJavaObject

                    if (selection instanceof IJavaStackFrame) {
                        try {
                            IJavaThread thread = (IJavaThread) ((IJavaStackFrame) selection).getThread();
                            IStackFrame[] frames = thread.getStackFrames();
                            for (int i = 0; i < frames.length; i++) {
                                IJavaObject stackObj = ((IJavaStackFrame) frames[i]).getThis();
                                if ((stackObj != null)
                                        && (stackObj.getJavaType() != null)
                                        && ("org.drools.reteoo.ReteooStatefulSession".equals(stackObj.getJavaType().getName())
                                                || "org.drools.impl.StatefulKnowledgeSessionImpl".equals(stackObj.getJavaType().getName()))) {
                                    input = stackObj;
                                    break;
                                }
                            }
                        } catch (Throwable t) {
View Full Code Here

Examples of org.eclipse.jdt.debug.core.IJavaObject

  public IJavaClassType getIJavaClassType(IValue value) throws DebugException {
    if (!(value instanceof IJavaObject)) {
      return null;
    }
    IJavaObject javaValue = (IJavaObject) value;
    IJavaType type = javaValue.getJavaType();
    if (!(type instanceof IJavaClassType)) {
      return null;
    }
    IJavaClassType classType = (IJavaClassType) type;
    return classType;
View Full Code Here

Examples of org.eclipse.jdt.debug.core.IJavaObject

                    if (selection instanceof IJavaStackFrame) {
                        try {
                            IJavaThread thread = (IJavaThread) ((IJavaStackFrame) selection).getThread();
                            IStackFrame[] frames = thread.getStackFrames();
                            for (int i = 0; i < frames.length; i++) {
                                IJavaObject stackObj = ((IJavaStackFrame) frames[i]).getThis();
                                if ((stackObj != null)
                                        && (stackObj.getJavaType() != null)
                                        && ("org.drools.core.reteoo.ReteooStatefulSession".equals(stackObj.getJavaType().getName())
                                            || "org.drools.reteoo.ReteooStatefulSession".equals(stackObj.getJavaType().getName())
                                                || "org.drools.core.impl.StatefulKnowledgeSessionImpl".equals(stackObj.getJavaType().getName()))) {
                                    input = stackObj;
                                    break;
                                }
                            }
                        } catch (Throwable t) {
View Full Code Here

Examples of org.eclipse.jdt.debug.core.IJavaObject

    public boolean providesLogicalStructure(IValue value) {
        if (!(value instanceof IJavaObject)) {
            return false;
        }
        IJavaObject javaValue= (IJavaObject) value;
        try {
            IJavaType type= javaValue.getJavaType();
            if (!(type instanceof IJavaClassType)) {
                return false;
            }
            IJavaClassType classType = (IJavaClassType) type;
            IJavaInterfaceType[] interfaceTypes = classType.getAllInterfaces();
View Full Code Here

Examples of org.eclipse.jdt.debug.core.IJavaObject

    public IValue getLogicalStructure(IValue value) throws CoreException {
        if (!(value instanceof IJavaObject)) {
            return null;
        }
        IJavaObject javaValue = (IJavaObject) value;
        if (!providesLogicalStructure(value)) {
            return null;
        }
        List<IJavaVariable> variables = new ArrayList<IJavaVariable>();
       
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.