Package MyParser

Examples of MyParser.OpenVariable


    }
    public boolean varNameExist(String varname)
    {
       
        varname=varname.trim();
        OpenVariable node;
        for (int i=0;i<variablenListe.size();i++)
        {
            node= (OpenVariable)variablenListe.get(i);
           
            if (varname.equals(node.name))
View Full Code Here


       
    }
   
    public int vsGetVariableDT(String varname)
    {
        OpenVariable o = getVariable(varname);
        if (o!=null)
        {
            return o.datatype;
        }
        else return -1;
View Full Code Here

   
   
    public String[] vsGetVariablesNames()
    {
        String[] result= new String[variablenListe.size()];
        OpenVariable node;
        for (int i=0;i<variablenListe.size();i++)
        {
            node= (OpenVariable)variablenListe.get(i);
           
            result[i]=node.name;
View Full Code Here

    }
   
    public Object[] vsGetVariablesValues()
    {
        Object[] result= new Object[variablenListe.size()];
        OpenVariable node;
        for (int i=0;i<variablenListe.size();i++)
        {
            node= (OpenVariable)variablenListe.get(i);
           
            result[i]=node.value;
View Full Code Here

    // oder Variable nicht gefunden.
    public boolean vsCopyVSObjectToVariable(Object vsobject, String varname)
    {
        boolean result=false;
       
        OpenVariable node = getVariable(varname.trim());
        if (node!=null)
        {
            if (vsobject instanceof VSDouble && node.value instanceof Double)
            {
                VSDouble v = (VSDouble)vsobject;
View Full Code Here

    // liefert True wenn alles ok
    // und False wenn die Typen nicht kompatibel
    // oder Variable nicht gefunden.
    public boolean vsCopyVariableToVSObject(String varname, Object vsobject)
    {
        OpenVariable node = getVariable(varname);
        if (node!=null)
        {
            if (vsobject instanceof VSDouble && node.value instanceof Double)
            {
                Double v1=(Double)node.value;
View Full Code Here

                {
            return new Double(Double.valueOf(strValue));
                }
                else
                {
            OpenVariable o = getVariable(strValue);
            if (o!=null)
            {
                return o.value;
            }
            else return null;
View Full Code Here

       
       
        public OpenVariable getVariable(String varname)
        {
            varname=varname.trim();
            OpenVariable node;
            for (int i=0;i<variablenListe.size();i++)
            {
                node= (OpenVariable)variablenListe.get(i);
               
                if (varname.equals(node.name.trim()))
View Full Code Here

        }
       
        public OpenVariable getVariable(VSFlowInfo info, String varname)
        {
            varname=varname.trim();
            OpenVariable node;
           
            for (int i=0;i<info.variablenListe.size();i++)
            {
                node= (OpenVariable)info.variablenListe.get(i);
               
View Full Code Here

        }
       
       
        public void vsSetVar(String varname,Object value)
        {
            OpenVariable o = getVariable(varname);
            if (o!=null)
            {
                if (o.value instanceof Boolean && value instanceof Boolean)
                {
                    o.value = value;
View Full Code Here

TOP

Related Classes of MyParser.OpenVariable

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.