Package javax.lang.model.type

Examples of javax.lang.model.type.TypeMirror.accept()


      if ( !StringUtil.isPropertyName( string ) ) {
        return Boolean.FALSE;
      }

      TypeMirror returnType = t.getReturnType();
      return returnType.accept( this, element );
    }
  }
}
View Full Code Here


    // contains the bindings of the type parameters from the implemented
    // ConstraintValidator interface, e.g. "ConstraintValidator<CheckCase, String>"
    TypeMirror constraintValidatorImplementation = getConstraintValidatorSuperType( validatorType );

    return constraintValidatorImplementation.accept(
        new TypeKindVisitor6<TypeMirror, Void>() {

          @Override
          public TypeMirror visitDeclared(DeclaredType constraintValidatorImplementation, Void p) {
            // 2nd type parameter contains the data type supported by current validator class, e.g. "String"
View Full Code Here

    // contains the bindings of the type parameters from the implemented
    // ConstraintValidator
    // interface, e.g. "ConstraintValidator<CheckCase, String>"
    TypeMirror constraintValidatorImplementation = getConstraintValidatorSuperType( validatorType );

    return constraintValidatorImplementation.accept(
        new TypeKindVisitor6<TypeMirror, Void>() {

          @Override
          public TypeMirror visitDeclared(DeclaredType constraintValidatorImplementation, Void p) {
            // 2nd type parameter contains the data type supported by current validator class, e.g. "String"
View Full Code Here

    }

    public String visitWildcard(WildcardType t, Void p) {
        TypeMirror b = t.getExtendsBound();
        if(b!=null)
            return "? extends "+b.accept(this,null);
        else
            return "? super "+t.getSuperBound().accept(this,null);
    }

    public String visitExecutable(ExecutableType t, Void p) {
View Full Code Here

    this(name, type, Cardinality.ONE);
  }
 
  public Parameter(VariableElement v, Cardinality cardinality) {
    TypeMirror parameterType = v.asType();
    boolean anArray = parameterType.accept(new DecliningTypeVisitor<Boolean>(){
      @Override
      public Boolean visitDeclared(DeclaredType t, Object p) {
        return false;
      }
      @Override
View Full Code Here

            int inParams = getModeParameterCount(method, WebParam.Mode.IN);
            int outParams = getModeParameterCount(method, WebParam.Mode.OUT);
            if (inParams != 1) {
                builder.processError(WebserviceapMessages.WEBSERVICEAP_DOC_BARE_AND_NO_ONE_IN(typeElement.getQualifiedName(), method.toString()), method);
            }
            if (returnType.accept(NO_TYPE_VISITOR, null)) {
                if (outParam == null && !isOneWay) {
                    builder.processError(WebserviceapMessages.WEBSERVICEAP_DOC_BARE_NO_OUT(typeElement.getQualifiedName(), method.toString()), method);
                }
                if (outParams != 1) {
                    if (!isOneWay && outParams != 0)
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.