summaryrefslogtreecommitdiff
path: root/odk/examples/java/Inspector
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2007-04-04 08:22:53 +0000
committerRüdiger Timm <rt@openoffice.org>2007-04-04 08:22:53 +0000
commit77d976bf97f3c55a6e0df006ad26d9cc482a8e2c (patch)
tree77462dfbc2a44aa94041d3781c6f7db0488d5ffd /odk/examples/java/Inspector
parent32e6e8024fa2e1b25a8d59b35bf5c186365f81e8 (diff)
INTEGRATION: CWS sdkinspector3 (1.3.6); FILE MERGED
2007/02/22 16:45:22 bc 1.3.6.3: #i74649#methodNode.isinvoked() method embedded 2007/02/20 11:17:58 bc 1.3.6.2: #i74649#several changes 2007/02/19 09:43:48 bc 1.3.6.1: #i74649#SourceCode generation improved
Diffstat (limited to 'odk/examples/java/Inspector')
-rw-r--r--odk/examples/java/Inspector/UnoMethodNode.java17
1 files changed, 14 insertions, 3 deletions
diff --git a/odk/examples/java/Inspector/UnoMethodNode.java b/odk/examples/java/Inspector/UnoMethodNode.java
index d2417eb00e90..8cc1b0443479 100644
--- a/odk/examples/java/Inspector/UnoMethodNode.java
+++ b/odk/examples/java/Inspector/UnoMethodNode.java
@@ -2,9 +2,9 @@
*
* $RCSfile: UnoMethodNode.java,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: rt $ $Date: 2007-01-30 08:14:31 $
+ * last change: $Author: rt $ $Date: 2007-04-04 09:22:53 $
*
* The Contents of this file are made available subject to the terms of
* the BSD license.
@@ -67,6 +67,17 @@ public class UnoMethodNode extends UnoNode{
return ((!this.isPrimitive()) && (getTypeClass().getValue() != TypeClass.VOID_value));
}
+ protected boolean isInvokable(){
+ boolean bisFoldable = true;
+ XIdlClass[] xIdlClasses = m_xIdlMethod.getParameterTypes();
+ for (int i = 0; i < xIdlClasses.length; i++){
+ bisFoldable = Introspector.isPrimitive(xIdlClasses[i].getTypeClass());
+ if (!bisFoldable){
+ return false;
+ }
+ }
+ return bisFoldable;
+ }
public XIdlMethod getXIdlMethod(){
return m_xIdlMethod;
@@ -154,7 +165,7 @@ public class UnoMethodNode extends UnoNode{
}
- private String getParameterDescription(){
+ public String getParameterDescription(){
ParamInfo[] paramInfo = m_xIdlMethod.getParameterInfos();
String sParameters = "";
String sStandardMethodDisplayText = m_xIdlMethod.getReturnType().getName() + " " + m_xIdlMethod.getName() + " (" + sParameters + " )";