Expression vr = varRef(new SimpleIdentifier(decl.resolveName())); Statement deleteStat = stat(methodCall(expr(typeRef(BridJ.class)), "delete", referenced ? methodCall(vr, "get") : vr)); deleteStat.setCommentAfter("// object would end up being deleted by the GC later, but in C++ it would be deleted here.");
if (si.isJavaStaticImportable()) continue; String name = si.getName(); resolvedIds.put(id, name); Identifier pack = id.resolveAllButLastIdentifier();
if ((ident instanceof SimpleIdentifier) && ((SimpleIdentifier) ident).getTemplateArguments().isEmpty()) { String name = ident.toString(); int nArgs = arguments == null ? 0 : arguments.size();
TypeRef tr = findObjCClass(name); if (tr == null) { tr = findObjCClass(new Identifier.SimpleIdentifier(((Identifier.SimpleIdentifier) name).getName()));
Struct.Type.ObjCProtocol ); struct.setTag(new SimpleIdentifier((className!=null?className.getText():null))); struct.addParent(new SimpleIdentifier((parentClass!=null?parentClass.getText():null))); if ( state.backtracking==0 ) { struct.addProtocol(new SimpleIdentifier((p1!=null?p1.getText():null))); } if ( state.backtracking==0 ) { struct.addProtocol(new SimpleIdentifier((px!=null?px.getText():null))); }
retval.signature.getFunction().setName(new SimpleIdentifier((ii!=null?ii.getText():null)));
TypeRef tr = findObjCClass(name); if (tr == null) { tr = findObjCClass(new Identifier.SimpleIdentifier(((Identifier.SimpleIdentifier) name).getName()));
function.setName(new SimpleIdentifier((methodName!=null?methodName.getText():null))); function.setCommentAfter(getCommentAfterOnSameLine(methodName.getTokenIndex(), null));
identifier = new SimpleIdentifier("operator" + operator40.toString()); i.setName((pre!=null?pre.getText():null) + i.getName()); identifier = i;
ident.resolveLastSimpleIdentifier().addTemplateArgument(first); ident.resolveLastSimpleIdentifier().addTemplateArgument(other);
if (name != null) { conv.type = ConvType.Pointer; conv.typeRef = typeRef(result.getUndefinedType(libraryClassName, name.resolveLastSimpleIdentifier().clone())); conv.isUndefined = true; return conv;
namespace.setName(new SimpleIdentifier((ns!=null?ns.getText():null)));
expr.setFunction(new VariableRef(new SimpleIdentifier((methodName!=null?methodName.getText():null)))); expr.setTarget(target); expr.setMemberRefStyle(MemberRefStyle.SquareBrackets);
if (name != null) { conv.type = ConvType.Pointer; conv.typeRef = typeRef(result.getUndefinedType(libraryClassName, name.resolveLastSimpleIdentifier().clone())); conv.isUndefined = true; return conv;
name = new SimpleIdentifier(stoName); Function f = SyntaxUtils.as(arg.getParentElement(), Function.class); if (f != null) { name = new SimpleIdentifier(f.getName() + "_" + arg.getName()); break; name = new SimpleIdentifier("callback");
name = new SimpleIdentifier(stoName); Function f = SyntaxUtils.as(arg.getParentElement(), Function.class); if (f != null) { name = new SimpleIdentifier(f.getName() + "_" + arg.getName()); break; name = new SimpleIdentifier("callback");
if (rawEnumName != null && rawEnumName.resolveLastSimpleIdentifier().getName() != null) { hasEnumClass = true;
if (rawEnumName != null && rawEnumName.resolveLastSimpleIdentifier().getName() != null) { hasEnumClass = true;
if ((ident instanceof SimpleIdentifier) && ((SimpleIdentifier) ident).getTemplateArguments().isEmpty()) { String name = ident.toString(); int nArgs = arguments == null ? 0 : arguments.size();
declarations.add(decl(Struct.forwardDecl(new SimpleIdentifier((n1!=null?n1.getText():null)), Struct.Type.ObjCClass))); defineTypeIdentifierInParentScope((n1!=null?n1.getText():null)); declarations.add(decl(Struct.forwardDecl(new SimpleIdentifier((nx!=null?nx.getText():null)), Struct.Type.ObjCClass))); defineTypeIdentifierInParentScope((nx!=null?nx.getText():null));