com.google.gwt.maps.jsio.rebind
Interface TaskFactory.Policy

Enclosing class:
TaskFactory

public static interface TaskFactory.Policy

Defines an extraction policy when creating Tasks.


Method Summary
 java.util.Collection<com.google.gwt.core.ext.typeinfo.JMethod> getOperableMethods(com.google.gwt.core.ext.typeinfo.TypeOracle oracle, com.google.gwt.core.ext.typeinfo.JClassType clazz)
          Specifies the base interface type so that it will be ignored by TaskFactory.extractMethods(TreeLogger, TypeOracle, JClassType, com.google.gwt.maps.jsio.rebind.TaskFactory.Policy).
 boolean shouldBind(com.google.gwt.core.ext.TreeLogger logger, com.google.gwt.core.ext.typeinfo.TypeOracle oracle, com.google.gwt.core.ext.typeinfo.JMethod m)
          Exporting methods via a flyweight interface is done by binding an instance of a type (or just the static methods of a type) to a JSO.
 boolean shouldConstruct(com.google.gwt.core.ext.TreeLogger logger, com.google.gwt.core.ext.typeinfo.TypeOracle oracle, com.google.gwt.core.ext.typeinfo.JMethod m)
          Determines if a method should be treated as an invocation of an underlying JavaScript constructor function.
 boolean shouldExport(com.google.gwt.core.ext.TreeLogger logger, com.google.gwt.core.ext.typeinfo.TypeOracle oracle, com.google.gwt.core.ext.typeinfo.JMethod m)
          Determines if the generator should generate an export binding for the method.
 boolean shouldImplement(com.google.gwt.core.ext.TreeLogger logger, com.google.gwt.core.ext.typeinfo.TypeOracle oracle, com.google.gwt.core.ext.typeinfo.JMethod m)
          Determines if the generator should implement a particular method.
 boolean shouldImport(com.google.gwt.core.ext.TreeLogger logger, com.google.gwt.core.ext.typeinfo.TypeOracle oracle, com.google.gwt.core.ext.typeinfo.JMethod m)
          Determines if the generator should generate an import binding for the method.
 

Method Detail

getOperableMethods

java.util.Collection<com.google.gwt.core.ext.typeinfo.JMethod> getOperableMethods(com.google.gwt.core.ext.typeinfo.TypeOracle oracle,
                                                                                  com.google.gwt.core.ext.typeinfo.JClassType clazz)
Specifies the base interface type so that it will be ignored by TaskFactory.extractMethods(TreeLogger, TypeOracle, JClassType, com.google.gwt.maps.jsio.rebind.TaskFactory.Policy).


shouldBind

boolean shouldBind(com.google.gwt.core.ext.TreeLogger logger,
                   com.google.gwt.core.ext.typeinfo.TypeOracle oracle,
                   com.google.gwt.core.ext.typeinfo.JMethod m)
                   throws com.google.gwt.core.ext.UnableToCompleteException
Exporting methods via a flyweight interface is done by binding an instance of a type (or just the static methods of a type) to a JSO.

Throws:
com.google.gwt.core.ext.UnableToCompleteException

shouldConstruct

boolean shouldConstruct(com.google.gwt.core.ext.TreeLogger logger,
                        com.google.gwt.core.ext.typeinfo.TypeOracle oracle,
                        com.google.gwt.core.ext.typeinfo.JMethod m)
                        throws com.google.gwt.core.ext.UnableToCompleteException
Determines if a method should be treated as an invocation of an underlying JavaScript constructor function.

Throws:
com.google.gwt.core.ext.UnableToCompleteException

shouldExport

boolean shouldExport(com.google.gwt.core.ext.TreeLogger logger,
                     com.google.gwt.core.ext.typeinfo.TypeOracle oracle,
                     com.google.gwt.core.ext.typeinfo.JMethod m)
                     throws com.google.gwt.core.ext.UnableToCompleteException
Determines if the generator should generate an export binding for the method.

Throws:
com.google.gwt.core.ext.UnableToCompleteException

shouldImplement

boolean shouldImplement(com.google.gwt.core.ext.TreeLogger logger,
                        com.google.gwt.core.ext.typeinfo.TypeOracle oracle,
                        com.google.gwt.core.ext.typeinfo.JMethod m)
                        throws com.google.gwt.core.ext.UnableToCompleteException
Determines if the generator should implement a particular method. A method will be implemented only if it is abstract and defined in a class derived from JSWrapper

Throws:
com.google.gwt.core.ext.UnableToCompleteException

shouldImport

boolean shouldImport(com.google.gwt.core.ext.TreeLogger logger,
                     com.google.gwt.core.ext.typeinfo.TypeOracle oracle,
                     com.google.gwt.core.ext.typeinfo.JMethod m)
                     throws com.google.gwt.core.ext.UnableToCompleteException
Determines if the generator should generate an import binding for the method.

Throws:
com.google.gwt.core.ext.UnableToCompleteException