org.jext.dawn.test
Class SameTypeFunction

java.lang.Object
  extended byorg.jext.dawn.CodeSnippet
      extended byorg.jext.dawn.test.SameTypeFunction

public class SameTypeFunction
extends CodeSnippet

Tests the type of two given elements.
Usage:
element element sameType

Author:
Romain Guy

Constructor Summary
SameTypeFunction()
           
 
Method Summary
 java.lang.String getCode()
          Returns the function code.
 java.lang.String getName()
          Returns the function name.
 
Methods inherited from class org.jext.dawn.CodeSnippet
getHelp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SameTypeFunction

public SameTypeFunction()
Method Detail

getName

public java.lang.String getName()
Description copied from class: CodeSnippet
Returns the function name. The returned name is the name which must be called in a script to invoke the function.

Specified by:
getName in class CodeSnippet
Returns:
A String, containing the name

getCode

public java.lang.String getCode()
Description copied from class: CodeSnippet
Returns the function code. This code must be written in Dawn scripting language. A code snippet can contains any Dawn function and also use the 'needs' keyword to request the installation of a specific package.

Specified by:
getCode in class CodeSnippet
Returns:
A String, containing the code


Copyright ? 2002 Romain Guy.