summaryrefslogtreecommitdiff
path: root/scripting/java/com/sun/star/script/framework/provider/java/ScriptDescriptor.java
diff options
context:
space:
mode:
Diffstat (limited to 'scripting/java/com/sun/star/script/framework/provider/java/ScriptDescriptor.java')
-rw-r--r--scripting/java/com/sun/star/script/framework/provider/java/ScriptDescriptor.java20
1 files changed, 4 insertions, 16 deletions
diff --git a/scripting/java/com/sun/star/script/framework/provider/java/ScriptDescriptor.java b/scripting/java/com/sun/star/script/framework/provider/java/ScriptDescriptor.java
index 5b38bc0c2e1f..9d45332f7ca2 100644
--- a/scripting/java/com/sun/star/script/framework/provider/java/ScriptDescriptor.java
+++ b/scripting/java/com/sun/star/script/framework/provider/java/ScriptDescriptor.java
@@ -15,7 +15,6 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-
package com.sun.star.script.framework.provider.java;
import java.util.ArrayList;
@@ -27,6 +26,7 @@ import java.util.StringTokenizer;
* criteria that should be used for finding a particular script
*/
public class ScriptDescriptor {
+
private String m_name;
private String m_methodName;
private String m_className;
@@ -39,8 +39,7 @@ public class ScriptDescriptor {
* @param name Script Name
* @exception IllegalArgumentException if the given name does not contain a "."
*/
- public ScriptDescriptor(String name)
- throws IllegalArgumentException {
+ public ScriptDescriptor(String name) throws IllegalArgumentException {
int idx = name.lastIndexOf('.');
if (idx == -1) {
@@ -70,7 +69,6 @@ public class ScriptDescriptor {
return m_className;
}
-
/**
* Gets the method name of this <code>ScriptDescriptor</code>
*
@@ -80,7 +78,6 @@ public class ScriptDescriptor {
return m_methodName;
}
-
/**
* Sets the classpath value stored by this <code>ScriptDescriptor</code>
*
@@ -103,7 +100,6 @@ public class ScriptDescriptor {
this.m_classpath = classpath;
}
-
/**
* Gets the classpath value stored by this <code>ScriptDescriptor</code>
*
@@ -113,7 +109,6 @@ public class ScriptDescriptor {
return m_classpath;
}
-
/**
* Adds the given <code>Class</code> to the list of argument types stored in
* this ScriptDescriptor
@@ -125,10 +120,6 @@ public class ScriptDescriptor {
m_argumentTypes.add(clazz);
}
-
-
-
-
/**
* Gets a list of the types of the arguments stored in this
* <code>ScriptDescriptor</code>
@@ -138,15 +129,13 @@ public class ScriptDescriptor {
* @return The argumentTypes value
*/
- public synchronized Class<?>[]
- getArgumentTypes() {
+ public synchronized Class<?>[] getArgumentTypes() {
if (m_argumentTypes.size() > 0)
return m_argumentTypes.toArray(new Class[ m_argumentTypes.size() ]);
else
return null;
}
-
/**
* Returns a <code>String</code> representation of this
* <code>ScriptDescriptor</code>
@@ -173,5 +162,4 @@ public class ScriptDescriptor {
return description.toString();
}
-}
-
+} \ No newline at end of file