engine
Class ConnectionDescription

java.lang.Object
  |
  +--engine.Symbol
        |
        +--engine.ConnectionDescription

class ConnectionDescription
extends Symbol

A connection from inside a module to the outside world. It may contain a selection of ports bundled together under a single name visible from outside or an expression to be assigned to the port designated by the name (in a named parameter list).

See Also:
Serialized Form

Field Summary
(package private)  ExpressionDescription portExpDesc
          The ports bundled inside this name
(package private)  boolean preparedForContSelection
           
(package private)  int type
          The in/out/both type of the connection
 
Fields inherited from class engine.Symbol
blockType, connType, funcType, intType, lineNo, moduleArType, moduleType, name, paramType, portType, realType, regType, taskType, udpType, wireType
 
Constructor Summary
(package private) ConnectionDescription(java.lang.String name, int lineNo, ExpressionDescription portExpDesc)
           
 
Method Summary
(package private)  int computeType(DefaultNameSpaceDescription nsd)
          If this expression is a port selection, computes the overall type: if all ports have tha same type with the exception of the inuout ones, the overall type is the same.
 int getType()
           
(package private)  java.lang.Object instantiate(NameSpace ns, ScopeNode thisScope)
           
(package private)  void prepareForContSelection()
          Makes this expression a continuous expression
 
Methods inherited from class engine.Symbol
toString
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

type

int type
The in/out/both type of the connection

portExpDesc

ExpressionDescription portExpDesc
The ports bundled inside this name

preparedForContSelection

boolean preparedForContSelection
Constructor Detail

ConnectionDescription

ConnectionDescription(java.lang.String name,
                      int lineNo,
                      ExpressionDescription portExpDesc)
Method Detail

computeType

int computeType(DefaultNameSpaceDescription nsd)
          throws ParseException
If this expression is a port selection, computes the overall type: if all ports have tha same type with the exception of the inuout ones, the overall type is the same. If all the ports are inout, the overall is inout. Note that the if a port identifier is from another module (a fqn with more than one node), a parse exception is thrown else, an exception is thrown

instantiate

java.lang.Object instantiate(NameSpace ns,
                             ScopeNode thisScope)
                       throws ParseException
Overrides:
instantiate in class Symbol

prepareForContSelection

void prepareForContSelection()
                       throws ParseException
Makes this expression a continuous expression

getType

public int getType()
Overrides:
getType in class Symbol