org.moremotion.clang
Class CustomLanguage

java.lang.Object
  extended by org.moremotion.clang.CustomLanguage

public abstract class CustomLanguage
extends java.lang.Object

Base class for developing custom languages. The classes that extends this base class should implement getSyntax() and excuteFunction() methods.

Version:
$Id: CustomLanguage.java 673 2010-10-15 08:20:54Z erkan $

Constructor Summary
CustomLanguage(MoreMotionRequest request, Logger parent)
           
 
Method Summary
 int _execute(java.lang.String s)
           
 int execute(java.lang.String s)
           
abstract  int executeFunction(int funcid, java.lang.Object[] args)
           
abstract  LanguageSyntax getSyntax()
           
static boolean isConstant(java.lang.String s)
           
 void setProcessRecord(ProcessRecord prec)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomLanguage

public CustomLanguage(MoreMotionRequest request,
                      Logger parent)
Method Detail

getSyntax

public abstract LanguageSyntax getSyntax()

executeFunction

public abstract int executeFunction(int funcid,
                                    java.lang.Object[] args)
                             throws CLException
Throws:
CLException

setProcessRecord

public void setProcessRecord(ProcessRecord prec)

execute

public int execute(java.lang.String s)
            throws CLException
Throws:
CLException

_execute

public int _execute(java.lang.String s)
             throws CLException,
                    RemoveInstructionException
Throws:
CLException
RemoveInstructionException

isConstant

public static boolean isConstant(java.lang.String s)


Copyright © 2002-2011 MOR YAZILIM. All Rights Reserved.