Examples of substitute()


Examples of com.alibaba.citrus.util.regex.MatchResultSubstitution.substitute()

        }

        private boolean match(String itemName, Matcher matcher) {
            MatchResultSubstitution subs = new MatchResultSubstitution(matcher);

            String type = trimToNull(subs.substitute(typeName));
            String name;

            if (type == null) {
                return false;
            }
View Full Code Here

Examples of com.alibaba.citrus.util.regex.Substitution.substitute()

        Substitution subst = getSubstitution(pipelineContext);

        String resourceName;

        if (subst != null && this.resourceName != null) {
            resourceName = trimToNull(subst.substitute(this.resourceName));
        } else {
            resourceName = ServletUtil.getResourcePath(rundata.getRequest());
        }

        try {
View Full Code Here

Examples of com.dotcms.repackage.org.apache.oro.text.perl.Perl5Util.substitute()

        // Convert most markup.
        Perl5Util perl = new Perl5Util();
        for (int i = 0; i < perLineREs.length; i += 2)
        {
            contents = perl.substitute(makeSubstRE(i), contents);
        }

        // Convert closing curlies.
        if (perl.match("m/javascript/i", contents))
        {
View Full Code Here

Examples of com.google.dart.engine.internal.type.FunctionTypeImpl.substitute()

      if (type instanceof InterfaceTypeImpl) {
        InterfaceTypeImpl interfaceType = (InterfaceTypeImpl) type;
        type = interfaceType.substitute(typeArguments);
      } else if (type instanceof FunctionTypeImpl) {
        FunctionTypeImpl functionType = (FunctionTypeImpl) type;
        type = functionType.substitute(typeArguments);
      } else {
        // TODO(brianwilkerson) Report this internal error.
      }
    } else {
      //
View Full Code Here

Examples of com.google.dart.engine.internal.type.InterfaceTypeImpl.substitute()

          typeArguments[i] = dynamicType;
        }
      }
      if (type instanceof InterfaceTypeImpl) {
        InterfaceTypeImpl interfaceType = (InterfaceTypeImpl) type;
        type = interfaceType.substitute(typeArguments);
      } else if (type instanceof FunctionTypeImpl) {
        FunctionTypeImpl functionType = (FunctionTypeImpl) type;
        type = functionType.substitute(typeArguments);
      } else {
        // TODO(brianwilkerson) Report this internal error.
View Full Code Here

Examples of com.google.dart.engine.type.FunctionType.substitute()

    // loop backward through the list substituting as we go:
    while (!inheritancePath.isEmpty()) {
      InterfaceType lastType = inheritancePath.removeLast();
      Type[] parameterTypes = lastType.getElement().getType().getTypeArguments();
      Type[] argumentTypes = lastType.getTypeArguments();
      functionTypeToReturn = functionTypeToReturn.substitute(argumentTypes, parameterTypes);
    }
    return functionTypeToReturn;
  }

  /**
 
View Full Code Here

Examples of com.google.dart.engine.type.InterfaceType.substitute()

        AnalysisEngine.getInstance().getLogger().logError(
            "Could not find type Future in dart:async");
        return VoidTypeImpl.getInstance();
      }
      InterfaceType futureType = futureElement.getType();
      return futureType.substitute(new Type[] {DynamicTypeImpl.getInstance()});
    } catch (AnalysisException exception) {
      AnalysisEngine.getInstance().getLogger().logError(
          "Could not build the element model for dart:async",
          exception);
      return VoidTypeImpl.getInstance();
View Full Code Here

Examples of com.google.dart.engine.type.Type.substitute()

    Type[] typeParameters = TypeParameterTypeImpl.getTypes(getTypeParameters());
    for (ParameterElement parameter : parameters) {
      if (parameter.getParameterKind() == ParameterKind.NAMED) {
        Type type = parameter.getType();
        if (typeArguments.length != 0 && typeArguments.length == typeParameters.length) {
          type = type.substitute(typeArguments, typeParameters);
        }
        namedParameterTypes.put(parameter.getName(), type);
      }
    }
    return namedParameterTypes;
View Full Code Here

Examples of com.intellij.psi.PsiSubstitutor.substitute()

    PsiSubstitutor firstSubstitutor = firstPair.getSecond();
    PsiSubstitutor secondSubstitutor = secondPair.getSecond();
    final PsiType nullType = PsiPrimitiveTypeFactory.getInstance().getNullType();
    for (int i = 0; i < firstMethodParameterListParameters.length; i++) {
      PsiType firstMethodParameterListParameterType = firstSubstitutor.substitute(firstMethodParameterListParameters[i].getType());
      PsiType secondMethodParameterListParameterType = secondSubstitutor.substitute(secondMethodParameterListParameters[i].getType());
      if (nullType.equals(firstMethodParameterListParameterType)) {
        continue;
      }
      if (!typesAreEquivalent(firstMethodParameterListParameterType, secondMethodParameterListParameterType)) {
        return false;
View Full Code Here

Examples of com.izforge.izpack.util.VariableSubstitutor.substitute()

                        if (null == is)
                        {
                            is = new BufferedInputStream(originalUrl.openStream());
                        }
                        VariableSubstitutor vs = new VariableSubstitutor(compiler.getVariables());
                        vs.substitute(is, os, type, encoding);
                    }
                }

            }
            catch (Exception e)
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.