Package eu.admire.dispel.parser.types

Examples of eu.admire.dispel.parser.types.Variable


            }
            // if we have a simple connection type then we create an instance
            if (mType instanceof ConnectionType && mArrayDimension == 0)
            {
                Connection connection = new TeeConnection();
                mVariable = new Variable(new ConnectionType(), connection);
            }
            else
            {
                mVariable = new Variable(mType);
            }
            mExecutionState.getVariables().put(mName, mVariable);
            break;
        case GENERIC_PE:
        {
View Full Code Here


    @Override
    public void setProcessingElementType(String text)
        throws UnknownTypeException, TypeMismatchException
    {
        Variable var = mExecutionState.getVariables().get(text);
        if (var == null)
        {
            throw new UnknownTypeException(text);
        }
        if (!(var.getType() instanceof ProcessingElementTypeType))
        {
            throw new TypeMismatchException("ProcessingElementTypeType", var.getValue());
        }
        ProcessingElementTypeType type = (ProcessingElementTypeType)var.getType();
        SimpleProcessingElementDescriptor descriptor = null;
        if (type.getDescriptor() != null)
        {
            descriptor =
                new SimpleProcessingElementDescriptor(null, type.getDescriptor(), null);
View Full Code Here

   
    @Override
    public void setProcessingElementType(String text)
        throws UnknownTypeException
    {
        Variable var = mExecutionState.getVariables().get(text);
        if (var == null)
        {
            throw new UnknownTypeException(text);
        }
        Type type = var.getType();
        mFunction.setReturnType(type);
    }
View Full Code Here

TOP

Related Classes of eu.admire.dispel.parser.types.Variable

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.