Examples of Definition


Examples of org.geotools.process.vector.TransformProcess.Definition

    static List<Definition> createDefaultTransformDefinition(SimpleFeatureType featureType) {
        FilterFactory2 ff = CommonFactoryFinder.getFilterFactory2();
        List<Definition> list = new ArrayList<TransformProcess.Definition>();
        if (featureType != null) {
            for (AttributeDescriptor descriptor : featureType.getAttributeDescriptors()) {
                Definition definition = new Definition();

                definition.name = descriptor.getLocalName();
                definition.binding = descriptor.getType().getBinding();
                definition.expression = ff.property(descriptor.getName());
View Full Code Here

Examples of org.jboss.fpak.model.Definition

      ctx.addInputStream(profileStream);
      ctx.setTemplateArgs(args);
      ctx.getGlobals().put("_out", out);

      ParseStrategy parseStrategy = new DefaultParseStrategy();
      Definition def = parseStrategy.doStrategy(ctx);

      RunStrategy runStrategy = new DefaultRunStrategy();
      runStrategy.doStrategy(ctx, def);
   }
View Full Code Here

Examples of org.nimbustools.messaging.gt4_0.generated.metadata.definition.Definition

        // -------------------------------------------------------------
        // Weed out the needed items:
        // -------------------------------------------------------------

        final Definition def = vw.getDefinition();
        if (def == null) {
            throw new CannotTranslateException(
                    "create request definition may not be missing");
        }
View Full Code Here

Examples of org.overturetool.vdmj.definitions.Definition

    }

    String className = variableName.get(0);
    String varName = variableName.get(1);

    Definition s = classList.findName(new LexNameToken(className, varName, null), NameScope.NAMESANDSTATE);

    if (s == null)
    {
      throw new RemoteSimulationException("Unable to locate: \""
          + dotName(variableName)
          + "\" failed with: \""
          + varName
          + "\". Is this accessiable through the system while inilializing");
    }

    List<String> restOfQuantifier = variableName.subList(2, variableName.size());

    if (restOfQuantifier.size() == 0)
    {
      return s;
    } else
    {
      for (int i = 0; i < restOfQuantifier.size(); i++)
      {
        className = s.getType().getName();

        s = classList.findName(new LexNameToken(className, restOfQuantifier.get(i), null), NameScope.NAMESANDSTATE);

        // if(s== null)
        // {
View Full Code Here

Examples of org.python.pydev.editor.codecompletion.revisited.visitors.Definition

                Log.log(e);
                return;
            }

            for (IDefinition iDefinition : definition) {
                Definition d = (Definition) iDefinition;
                if (d.ast instanceof FunctionDef) {
                    functionDefinitionReferenced = (FunctionDef) d.ast;

                    String withoutLastPart = FullRepIterable.getWithoutLastPart(rep);
                    Boolean b = valToBounded.get(withoutLastPart);
                    if (b != null) {
                        callingBoundMethod = b;
                    } else {
                        int count = StringUtils.count(rep, '.');

                        if (count == 1 && rep.startsWith("self.")) {
                            FastStack<SimpleNode> scopeStack = d.scope.getScopeStack();
                            if (scopeStack.size() > 0 && scopeStack.peek() instanceof ClassDef) {
                                callingBoundMethod = true;
                            } else {
                                callingBoundMethod = false;
                            }

                        } else {
                            FastStack<SimpleNode> scopeStack = d.scope.getScopeStack();
                            if (scopeStack.size() > 1 && scopeStack.peek(1) instanceof ClassDef) {
                                callingBoundMethod = true;
                                String withoutLast = FullRepIterable.getWithoutLastPart(rep);
                                ArrayList<IDefinition> definition2 = new ArrayList<IDefinition>();
                                PyRefactoringFindDefinition.findActualDefinition(null, this.current, withoutLast,
                                        definition2, -1, -1, this.nature, this.completionCache);

                                for (IDefinition iDefinition2 : definition2) {
                                    Definition d2 = (Definition) iDefinition2;
                                    if (d2.ast instanceof ClassDef) {
                                        callingBoundMethod = false;
                                        break;
                                    }
                                }
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.