oracle.jdeveloper.compiler
Class CopyTranslator
java.lang.Object
|
+--oracle.jdeveloper.compiler.CopyTranslator
- All Implemented Interfaces:
- Addin, Translator
- public class CopyTranslator
- extends java.lang.Object
- implements Translator, Addin
Method Summary |
boolean |
canBuild(oracle.ojc.interfaces.Storage store)
canBuild is a predicate to find out if this translator
can build the specified store (i.e. |
boolean |
canShutdown()
This method is called by the IDE to confirm that the ide can shutdown |
java.util.ArrayList |
getInputTypes()
getInputTypes should return an array of 0 or more
supported input types (currently the form is a string representing
a file extension) |
java.lang.String |
getName()
Translator name (i.e. |
java.util.ArrayList |
getOutputTypes()
getOutputTypes should return an array of 0 or more
supported output/generated type of files/stores (currently the form is
a string representing a file extension) |
float |
ideVersion()
This method is called to determine the ide version number for which this
feature was implemented. |
void |
initialize()
This method is called by the IDE to request that the feature be initialized. |
boolean |
needToBuild(oracle.ojc.interfaces.Storage store)
needToBuild is a predicate to find out if this translator
needs the specified store to successfully build the other requested stores
(i.e. |
void |
setLog(Translator.Log log)
|
void |
setParameter(java.lang.String name,
java.lang.String value)
|
void |
setProject(Project project)
|
void |
shutdown()
This method is called by the IDE to request that the feature release
any resources held before the ide shuts down.. |
int |
translate(Project prj,
boolean rebuild,
java.util.ArrayList sources,
java.util.ArrayList results)
return the number of errors
0 if successfull |
void |
updateProject(Project project)
|
float |
version()
This method is called to determine the feature version number, i.e. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CopyTranslator
public CopyTranslator()
getName
public java.lang.String getName()
- Translator name (i.e. "CopyTranslator")
- Specified by:
getName
in interface Translator
- Returns:
- the name of the translator
getInputTypes
public java.util.ArrayList getInputTypes()
- Description copied from interface:
Translator
getInputTypes
should return an array of 0 or more
supported input types (currently the form is a string representing
a file extension)
- Specified by:
getInputTypes
in interface Translator
- Following copied from interface:
oracle.jdeveloper.compiler.Translator
- Returns:
- an array of 0 or more java.lang.String, can't be null
getOutputTypes
public java.util.ArrayList getOutputTypes()
- Description copied from interface:
Translator
getOutputTypes
should return an array of 0 or more
supported output/generated type of files/stores (currently the form is
a string representing a file extension)
- Specified by:
getOutputTypes
in interface Translator
- Following copied from interface:
oracle.jdeveloper.compiler.Translator
- Returns:
- an array of 0 or more java.lang.String, can't be null
canBuild
public boolean canBuild(oracle.ojc.interfaces.Storage store)
- Description copied from interface:
Translator
canBuild
is a predicate to find out if this translator
can build the specified store (i.e. Ojc can't build a PL/SQL or JSP store).
- Specified by:
canBuild
in interface Translator
- Following copied from interface:
oracle.jdeveloper.compiler.Translator
- Parameters:
store
- Storage element to check- Returns:
- true if this Translator can build this store else false
needToBuild
public boolean needToBuild(oracle.ojc.interfaces.Storage store)
- Description copied from interface:
Translator
needToBuild
is a predicate to find out if this translator
needs the specified store to successfully build the other requested stores
(i.e. the SQLJ precompiler needs to have all .java files to build .sqlj
files).
- Specified by:
needToBuild
in interface Translator
- Following copied from interface:
oracle.jdeveloper.compiler.Translator
- Parameters:
store
- Storage element to check- Returns:
- true if this Translator need this store to build other stores
setLog
public void setLog(Translator.Log log)
- Specified by:
setLog
in interface Translator
setParameter
public void setParameter(java.lang.String name,
java.lang.String value)
- Specified by:
setParameter
in interface Translator
setProject
public void setProject(Project project)
- Specified by:
setProject
in interface Translator
updateProject
public void updateProject(Project project)
- Specified by:
updateProject
in interface Translator
translate
public int translate(Project prj,
boolean rebuild,
java.util.ArrayList sources,
java.util.ArrayList results)
- return the number of errors
0 if successfull
- Specified by:
translate
in interface Translator
- Following copied from interface:
oracle.jdeveloper.compiler.Translator
- Parameters:
prj
- -- context to build with (classpath, sourcepath, output dir, ...)rebuild
- -- if true will unconditinally rebuild all sourcessources
- -- a ArrayList of one or more Storage instanceresults
- -- a ArrayList of one or more Storage instance- Returns:
- the number of errors, 0 if successfull
initialize
public void initialize()
- This method is called by the IDE to request that the feature be initialized.
- Specified by:
initialize
in interface Addin
- Following copied from interface:
oracle.ide.addin.Addin
- See Also:
AddinManager
shutdown
public void shutdown()
- This method is called by the IDE to request that the feature release
any resources held before the ide shuts down..
- Specified by:
shutdown
in interface Addin
canShutdown
public boolean canShutdown()
- This method is called by the IDE to confirm that the ide can shutdown
- Specified by:
canShutdown
in interface Addin
version
public float version()
- This method is called to determine the feature version number, i.e. 1.0
- Specified by:
version
in interface Addin
- Returns:
- the feature version number.
ideVersion
public float ideVersion()
- This method is called to determine the ide version number for which this
feature was implemented.
- Specified by:
ideVersion
in interface Addin
- Returns:
- the ide version number, i.e. 5.0 .