public Iterable<MessageType> getAllMessages() { Iterable<WMethodDeclaration> _methods = WMethodContainerExtensions.methods(this.object); final Function1<WMethodDeclaration, MessageType> _function = new Function1<WMethodDeclaration, MessageType>() { public MessageType apply(final WMethodDeclaration it) { Result<MessageType> _messageType = ObjectLiteralWollokType.this.messageType(it); return _messageType.getFirst(); } }; return IterableExtensions.<WMethodDeclaration, MessageType>map(_methods, _function); }
public String getName() { Iterable<WMethodDeclaration> _methods = WMethodContainerExtensions.methods(this.object); final Function1<WMethodDeclaration, String> _function = new Function1<WMethodDeclaration, String>() { public String apply(final WMethodDeclaration it) { return it.getName(); } }; Iterable<String> _map = IterableExtensions.<WMethodDeclaration, String>map(_methods, _function); String _join = IterableExtensions.join(_map, " ; "); String _plus = ("{ " + _join); return (_plus + " }"); }
protected void _bind(final WClass c) { ClassBasedWollokType _classBasedWollokType = new ClassBasedWollokType(c, null, null); this.fixedNode(_classBasedWollokType, c); Iterable<WVariableDeclaration> _variableDeclarations = WMethodContainerExtensions.variableDeclarations(c); final Procedure1<WVariableDeclaration> _function = new Procedure1<WVariableDeclaration>() { public void apply(final WVariableDeclaration it) { BoundsBasedTypeSystem.this.bind(it); } }; IterableExtensions.<WVariableDeclaration>forEach(_variableDeclarations, _function); Iterable<WMethodDeclaration> _methods = WMethodContainerExtensions.methods(c); final Procedure1<WMethodDeclaration> _function_1 = new Procedure1<WMethodDeclaration>() { public void apply(final WMethodDeclaration it) { BoundsBasedTypeSystem.this.bind(it); } }; IterableExtensions.<WMethodDeclaration>forEach(_methods, _function_1); }