Examples of ClassType


Examples of com.sun.jdi.ClassType

                Object rem = getRemoteVar( "label" );
                if ( rem == null ) {
                    return null;
                }
                ObjectReference obj = (ObjectReference) rem;
                ClassType frameType = (ClassType) obj.type();
                Field field = frameType.fieldByName( "sourceFile" );
                rem = obj.getValue( field );
                if ( rem == null ) {
                    return null;
                }
                StringReference res = (StringReference) rem;
View Full Code Here

Examples of com.sun.jdi.ClassType

        Method method = getUnderlyingMethod(); // onBreak
        //ReferenceType declaringType = method.declaringType(); // org.drools.base.mvel.MVELDebugHandler

        LocalVariable var = (LocalVariable) method.variables().get( 0 );//frame

        ClassType frameType = (ClassType) var.type();

        StackFrame frame = getUnderlyingStackFrame();
        Value value = frame.getValue( var );
        //getThread().getTopStackFrame().get

        //IValue value = jdivar.getValue();
        ObjectReferenceImpl o = (ObjectReferenceImpl) value;

        //if ( value instanceof JDINullValue ) {
        // return null;
        // }

        //ObjectReference o = (ObjectReference) ((JDIObjectValue) value).getUnderlyingObject();
        if ( o == null ) {
            return null;
        }

        Field field = frameType.fieldByName( methodName );
        Value val = o.getValue( field );
        return val;
    }
View Full Code Here

Examples of com.sun.jdo.spi.persistence.support.sqlstore.query.util.type.ClassType

        match(_t,CLASS_DEF);
        _t = _t.getNextSibling();
        if ( inputState.guessing==0 ) {
         
          // check persistence capable
          ClassType candidateClass = (ClassType)c.getJQLType();
          candidateRD = createRetrieveDesc("this", candidateClass); //NOI18N
          candidateRD.setPrefetchEnabled(prefetchEnabled);
         
        }
      }
View Full Code Here

Examples of com.sun.mirror.type.ClassType

                        throwExceptionForModelRefTypeArgument(
                            classDeclaration,
                            fieldDeclaration);
                    }
                }
                ClassType superclassType = classType.getSuperclass();
                if (superclassType != null) {
                    superclassType.accept(this);
                }
            }

        });
    }
View Full Code Here

Examples of com.sun.mirror.type.ClassType

            throw new ValidationException(
                MessageCode.SLIM3GEN1052,
                env,
                classDeclaration.getPosition());
        }
        ClassType listenerClassType =
            TypeUtil.toClassType((TypeMirror) listener);
        if (listenerClassType == null) {
            return;
        }
        ClassDeclaration listenerClassDeclaration =
            listenerClassType.getDeclaration();
        if (listenerClassDeclaration == null) {
            throw new UnknownDeclarationException(
                env,
                listenerClassDeclaration,
                listenerClassType);
View Full Code Here

Examples of com.sun.mirror.type.ClassType

            throw new ValidationException(
                MessageCode.SLIM3GEN1055,
                env,
                declaration.getPosition());
        }
        ClassType coderClassType = TypeUtil.toClassType(mirror);
        if(coderClassType == null) return className;
        ClassDeclaration coderClassDeclaration =
            coderClassType.getDeclaration();
        if (coderClassDeclaration == null) {
            throw new UnknownDeclarationException(
                env,
                coderClassDeclaration,
                coderClassType);
View Full Code Here

Examples of com.sun.mirror.type.ClassType

            throw new ValidationException(
                MessageCode.SLIM3GEN1052,
                env,
                fieldDeclaration.getPosition());
        }
        ClassType listenerClassType =
            TypeUtil.toClassType((TypeMirror) listener);
        if (listenerClassType == null) {
            return;
        }
        ClassDeclaration listenerClassDeclaration =
            listenerClassType.getDeclaration();
        if (listenerClassDeclaration == null) {
            throw new UnknownDeclarationException(
                env,
                listenerClassDeclaration,
                listenerClassType);
View Full Code Here

Examples of com.sun.mirror.type.ClassType

        if (classType.getActualTypeArguments().size() == 1
            && classType.getActualTypeArguments().contains(
                fieldDeclaration.getType())) {
            return true;
        }
        ClassType superclass = classType.getSuperclass();
        if (superclass != null) {
            if (validateAttributeListenerParameter(
                attributeMetaDesc,
                classDeclaration,
                fieldDeclaration,
View Full Code Here

Examples of com.sun.mirror.type.ClassType

                        throwExceptionForModelRefTypeArgument(
                            classDeclaration,
                            fieldDeclaration);
                    }
                }
                ClassType superclassType = classType.getSuperclass();
                if (superclassType != null) {
                    superclassType.accept(this);
                }
            }

        });
    }
View Full Code Here

Examples of com.sun.tools.javac.code.Type.ClassType

    } else if (isArray && !isGeneric) {
      // Array type, not generic.
      ClassSymbol arraySymbol = getSymtab().arrayClass;
      return new ArrayType(baseType, arraySymbol);
    } else if (!isArray && isGeneric) {
      return new ClassType(Type.noType, typeParams, baseType.tsym);
    } else {
      throw new IllegalArgumentException("Unsupported arguments to getType");
    }
  }
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.