put in or de-deprecated some methods for jacobgen support. The methods are documented as such and that they shouldn't be used
This commit is contained in:
@@ -203,6 +203,13 @@ public class Variant extends JacobObject {
|
|||||||
throw new NotImplementedException("Not implemented");
|
throw new NotImplementedException("Not implemented");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Exists to support jacobgen.
|
||||||
|
* This would be deprecated if it weren't for jacobgen
|
||||||
|
* @return this same object
|
||||||
|
*/
|
||||||
|
public Variant toVariant() { return this; }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @deprecated superceded by SafeArray
|
* @deprecated superceded by SafeArray
|
||||||
* @param in doesn't matter because this method does nothing
|
* @param in doesn't matter because this method does nothing
|
||||||
@@ -455,9 +462,11 @@ public class Variant extends JacobObject {
|
|||||||
public native int toError();
|
public native int toError();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* acts a a cover for toDispatch
|
* Acts a a cover for toDispatch.
|
||||||
|
* This primarily exists to support jacobgen.
|
||||||
|
* This should be deprecated.
|
||||||
* @return Object returned by toDispatch()
|
* @return Object returned by toDispatch()
|
||||||
* @deprecated should use toDispatch() instead
|
* @see Variant#toDispatch() instead
|
||||||
*/
|
*/
|
||||||
public Object toObject() {
|
public Object toObject() {
|
||||||
return toDispatch();
|
return toDispatch();
|
||||||
@@ -491,8 +500,11 @@ public class Variant extends JacobObject {
|
|||||||
public native void putCurrency(long in);
|
public native void putCurrency(long in);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* puts an object into the Variant -- converts to Dispatch
|
* Puts an object into the Variant -- converts to Dispatch.
|
||||||
* @deprecated use putDispatch()
|
* Acts as a cover for putDispatchObject();
|
||||||
|
* This primarily exists to support jacobgen.
|
||||||
|
* This should be deprecated.
|
||||||
|
* @see Variant#putDispatch(Dispatch)
|
||||||
* */
|
* */
|
||||||
public void putObject(Object in){
|
public void putObject(Object in){
|
||||||
// this should verify in instanceof Dispatch
|
// this should verify in instanceof Dispatch
|
||||||
@@ -523,8 +535,10 @@ public class Variant extends JacobObject {
|
|||||||
public native void putBooleanRef(boolean in);
|
public native void putBooleanRef(boolean in);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Just a cover for putObject.
|
* Just a cover for putObject().
|
||||||
* @deprecated we shouldn't accept any old random object
|
* We shouldn't accept any old random object.
|
||||||
|
* This has been left in to support jacobgen.
|
||||||
|
* This should be deprecated.
|
||||||
* @param in
|
* @param in
|
||||||
*/
|
*/
|
||||||
public void putObjectRef(Object in) {
|
public void putObjectRef(Object in) {
|
||||||
|
|||||||
Reference in New Issue
Block a user