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

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


        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


        final HashMap<String, List<MethodInfo>> map = new HashMap<String, List<MethodInfo>>();
        final ArrayList<MethodInfo> methodInfos = new ArrayList<MethodInfo>();
        final ArrayList<String> params = new ArrayList<String>();
        params.add( "Integer" );
        params.add( "String" );
        methodInfos.add( new MethodInfo( "testFunction",
                                         params,
                                         "java.lang.Void",
                                         null,
                                         "TestClass" ) );
        map.put( "TestClass",
View Full Code Here

                " then\n" +
                "end";

        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( "java.lang.Number",
View Full Code Here

                " then\n" +
                "end";

        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( "java.lang.Number",
View Full Code Here

                                                                                                               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

                                       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

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.