Package org.drools.workbench.models.datamodel.oracle

Examples of org.drools.workbench.models.datamodel.oracle.MethodInfo


                                                              final String fieldName = field.getName();
                                                              if ( !isNested || !fieldName.equals( DataType.TYPE_THIS ) ) {

                                                                  boolean changed = false;
                                                                  for ( Iterator<MethodInfo> i = methodInfos.iterator(); i.hasNext(); ) {
                                                                      final MethodInfo methodInfo = i.next();
                                                                      final String methodName = methodInfo.getName();
                                                                      if ( methodName.startsWith( fieldName ) ) {
                                                                          completions.put( methodName,
                                                                                           METHOD_VALUE_PREFIX + "." + methodName );
                                                                          i.remove();
                                                                          changed = true;
View Full Code Here


        con2.setValue( "0" );
        p.addConstraint( con2 );

        final HashMap<String, List<MethodInfo>> map = new HashMap<String, List<MethodInfo>>();
        final ArrayList<MethodInfo> methodInfos = new ArrayList<MethodInfo>();
        methodInfos.add( new MethodInfo( "intValue",
                                         Collections.EMPTY_LIST,
                                         "int",
                                         null,
                                         DataType.TYPE_NUMERIC_INTEGER ) );
        map.put( "Number",
View Full Code Here

        con2.setValue( "0" );
        p.addConstraint( con2 );

        final HashMap<String, List<MethodInfo>> map = new HashMap<String, List<MethodInfo>>();
        final ArrayList<MethodInfo> methodInfos = new ArrayList<MethodInfo>();
        methodInfos.add( new MethodInfo( "intValue",
                                         Collections.EMPTY_LIST,
                                         "int",
                                         null,
                                         DataType.TYPE_NUMERIC_INTEGER ) );
        map.put( "Number",
View Full Code Here

                                       final String name,
                                       final List<String> params,
                                       final String returnType,
                                       final String parametricReturnType,
                                       final String genericType ) {
        MethodInfo mi = new MethodInfo( name,
                                        params,
                                        returnType,
                                        parametricReturnType,
                                        genericType );
View Full Code Here

                "    m.put(\"key\", a );\n" +
                "end\n";

        Map<String, List<MethodInfo>> methodInformation = new HashMap<String, List<MethodInfo>>();
        List<MethodInfo> mapMethodInformation = new ArrayList<MethodInfo>();
        mapMethodInformation.add( new MethodInfo( "put",
                                                  Arrays.asList( new String[]{ "java.lang.Object", "java.lang.Object" } ),
                                                  "void",
                                                  "void",
                                                  "java.util.Map" ) );
View Full Code Here

                "    t.doSomething( 1 * 2 );\n" +
                "end\n";

        Map<String, List<MethodInfo>> methodInformation = new HashMap<String, List<MethodInfo>>();
        List<MethodInfo> mapMethodInformation = new ArrayList<MethodInfo>();
        mapMethodInformation.add( new MethodInfo( "doSomething",
                                                  Arrays.asList( new String[]{ DataType.TYPE_NUMERIC_INTEGER } ),
                                                  "void",
                                                  "void",
                                                  "org.mortgages.MyType" ) );

View Full Code Here

                "    t.doSomething( i );\n" +
                "end\n";

        Map<String, List<MethodInfo>> methodInformation = new HashMap<String, List<MethodInfo>>();
        List<MethodInfo> mapMethodInformation = new ArrayList<MethodInfo>();
        mapMethodInformation.add( new MethodInfo( "doSomething",
                                                  Arrays.asList( new String[]{ DataType.TYPE_NUMERIC_INTEGER } ),
                                                  "void",
                                                  "void",
                                                  "org.mortgages.MyType" ) );
View Full Code Here

                        + "  s.indexOf( 0 );\n"
                        + "end\n";

        Map<String, List<MethodInfo>> methodInformation = new HashMap<String, List<MethodInfo>>();
        List<MethodInfo> mapMethodInformation = new ArrayList<MethodInfo>();
        mapMethodInformation.add( new MethodInfo( "indexOf",
                                                  Arrays.asList( new String[]{ "String" } ),
                                                  "int",
                                                  null,
                                                  "String" ) );
        mapMethodInformation.add( new MethodInfo( "indexOf",
                                                  Arrays.asList( new String[]{ "Integer" } ),
                                                  "int",
                                                  null,
                                                  "String" ) );
View Full Code Here

        HashMap<String, List<MethodInfo>> map = new HashMap<String, List<MethodInfo>>();
        ArrayList<MethodInfo> methodInfos = new ArrayList<MethodInfo>();
        ArrayList<String> params = new ArrayList<String>();
        params.add( "Integer" );
        params.add( "Integer" );
        methodInfos.add( new MethodInfo( "sum", params, "java.lang.Integer", null, "Summer" ) );
        map.put( "Calculator", methodInfos );

        when(
                dmo.getProjectMethodInformation()
            ).thenReturn(
View Full Code Here

                    ModelField currentField = findField( typeFields,
                                                         expressionPart );
                    if ( currentField != null ) {
                        currentClassName = currentField.getClassName();
                    }
                    MethodInfo currentMethodInfo = findMethodInfo( methodInfos,
                                                                   expressionPart );
                    if ( currentMethodInfo != null ) {
                        currentClassName = currentMethodInfo.getReturnClassType();
                    }

                    processExpressionPart( m,
                                           factType,
                                           currentField,
                                           currentMethodInfo,
                                           expression,
                                           expressionPart );

                    //Refresh field and method information based on current expression part
                    typeFields = findFields( m,
                                             dmo,
                                             currentClassName );
                    methodInfos = getMethodInfosForType( m,
                                                         dmo,
                                                         currentClassName );
                }
            }

            //Handle last expression part
            String expressionPart = splits[ splits.length - 1 ];
            ModelField currentField = findField( typeFields,
                                                 expressionPart );
            MethodInfo currentMethodInfo = findMethodInfo( methodInfos,
                                                           expressionPart );

            processExpressionPart( m,
                                   factType,
                                   currentField,
View Full Code Here

TOP

Related Classes of org.drools.workbench.models.datamodel.oracle.MethodInfo

Copyright © 2018 www.massapicom. 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.