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
| Fields inherited from class engine.Symbol |
blockType,
connType,
funcType,
intType,
lineNo,
moduleArType,
moduleType,
name,
paramType,
portType,
realType,
regType,
taskType,
udpType,
wireType |
| Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
wait,
wait,
wait |
type
int type
- The in/out/both type of the connection
portExpDesc
ExpressionDescription portExpDesc
- The ports bundled inside this name
preparedForContSelection
boolean preparedForContSelection
ConnectionDescription
ConnectionDescription(java.lang.String name,
int lineNo,
ExpressionDescription portExpDesc)
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