Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 215 for GetCode (0.18 sec)

  1. platforms/core-configuration/base-services-groovy/src/main/java/org/gradle/groovy/scripts/internal/StatementReplacingVisitorSupport.java

        stat.getExpression().visit(this);
        stat.setCode(replace(stat.getCode()));
      }
    
      @Override
      public void visitSynchronizedStatement(SynchronizedStatement stat) {
        stat.getExpression().visit(this);
        stat.setCode(replace(stat.getCode()));
      }
    
      @Override
      public void visitCatchStatement(CatchStatement stat) {
        stat.setCode(replace(stat.getCode()));
      }
    
      @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 10:00:26 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  2. platforms/documentation/docs/src/snippets/developingPlugins/testingPlugins/kotlin/url-verifier-plugin/src/main/java/org/myorg/http/HttpResponse.java

    public class HttpResponse {
        private int code;
        private String message;
    
        public HttpResponse(int code, String message) {
            this.code = code;
            this.message = message;
        }
    
        public int getCode() {
            return code;
        }
    
        public String getMessage() {
            return message;
        }
    
        @Override
        public String toString() {
            return "HTTP " + code + ", Reason: " + message;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 449 bytes
    - Viewed (0)
  3. platforms/ide/tooling-api-builders/src/main/java/org/gradle/tooling/internal/provider/runner/ClientForwardingTestOutputOperationListener.java

            }
        }
    
        private static int getDestination(TestOutputEvent.Destination destination) {
            switch (destination) {
                case StdOut: return Destination.StdOut.getCode();
                case StdErr: return Destination.StdErr.getCode();
                default: throw new IllegalStateException("Unknown output destination type: " + destination);
            }
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/snippets/developingPlugins/testingPlugins/groovy/url-verifier-plugin/src/main/java/org/myorg/http/HttpResponse.java

    public class HttpResponse {
        private int code;
        private String message;
    
        public HttpResponse(int code, String message) {
            this.code = code;
            this.message = message;
        }
    
        public int getCode() {
            return code;
        }
    
        public String getMessage() {
            return message;
        }
    
        @Override
        public String toString() {
            return "HTTP " + code + ", Reason: " + message;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 449 bytes
    - Viewed (0)
  5. platforms/core-configuration/base-services-groovy/src/main/java/org/gradle/groovy/scripts/internal/ExpressionReplacingVisitorSupport.java

            stat.setCode(replace(stat.getCode()));
        }
    
        @Override
        public void visitSynchronizedStatement(SynchronizedStatement stat) {
            stat.setExpression(replaceExpr(stat.getExpression()));
            stat.setCode(replace(stat.getCode()));
        }
    
        @Override
        public void visitCatchStatement(CatchStatement stat) {
            stat.setCode(replace(stat.getCode()));
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 10:00:26 UTC 2023
    - 16.9K bytes
    - Viewed (0)
  6. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/events/test/Destination.java

     */
    public enum Destination implements Serializable {
    
        StdOut(0),
        StdErr(1);
    
        private final int code;
    
         Destination(int code) {
            this.code = code;
        }
    
        public int getCode() {
            return code;
        }
    
        public static Destination fromCode(int code) {
            for (Destination d : Destination.values()) {
                if (d.code == code) {
                     return d;
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 13:57:30 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  7. platforms/documentation/docs/src/snippets/developingPlugins/testingPlugins/groovy/url-verifier-plugin/src/main/java/org/myorg/tasks/UrlVerify.java

        @TaskAction
        public void verify() {
            String url = getUrl().get();
            try {
                HttpResponse httpResponse = httpCaller.get(url);
    
                if (httpResponse.getCode() != 200) {
                    throw new GradleException(String.format("Failed to resolve url '%s' (%s)", url, httpResponse.toString()));
                }
            } catch (HttpCallException e) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  8. pkg/wasm/convert.go

    	}
    
    	// At this point, we should have wasmNetworkFilterConfig or wasmHTTPFilterConfig should be unmarshalled.
    	if wasmNetwork {
    		if wasmNetworkFilterConfig.Config.GetVmConfig().GetCode().GetRemote() == nil {
    			if wasmNetworkFilterConfig.Config.GetVmConfig().GetCode().GetLocal() == nil {
    				return nil, nil, nil, fmt.Errorf("no remote and local load found in Wasm Network filter %+v", wasmNetworkFilterConfig)
    			}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 20:06:41 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/snippets/developingPlugins/testingPlugins/kotlin/url-verifier-plugin/src/main/java/org/myorg/tasks/UrlVerify.java

        @TaskAction
        public void verify() {
            String url = getUrl().get();
            try {
                HttpResponse httpResponse = httpCaller.get(url);
    
                if (httpResponse.getCode() != 200) {
                    throw new GradleException(String.format("Failed to resolve url '%s' (%s)", url, httpResponse.toString()));
                }
            } catch (HttpCallException e) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-groovy/src/main/java/org/gradle/model/dsl/internal/transform/RuleVisitor.java

        public static void visitGeneratedClosure(ClassNode node) {
            MethodNode closureCallMethod = AstUtils.getGeneratedClosureImplMethod(node);
            Statement closureCode = closureCallMethod.getCode();
            InputReferences inputs = closureCode.getNodeMetaData(AST_NODE_METADATA_INPUTS_KEY);
            if (inputs != null) {
                SourceLocation sourceLocation = closureCode.getNodeMetaData(AST_NODE_METADATA_LOCATION_KEY);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 22 14:04:39 UTC 2024
    - 18.3K bytes
    - Viewed (0)
Back to top