@Override public FunctionSignature getValueType() { return (FunctionSignature)super.getValueType(); } @Override
@Override // @Deprecated public TypeRef getValueType() { return super.getValueType(); }
@Override public List<Modifier> harvestModifiers() { List<Modifier> mods = super.harvestModifiers(); if (getValueType() != null) mods.addAll(getValueType().harvestModifiers()); return mods; }
@Override public boolean replaceChild(Element child, Element by) { if (child == getValueType()) { setValueType((TypeRef) by); return true; } return super.replaceChild(child, by); }
protected void visitDeclaration(Declaration d) { visitStatement(d); visit(d.getValueType()); }
public boolean isEnumItem(Identifier ident) { Element v = getVariable(ident); if (v instanceof Declarator) { v = ((Declarator) v).getParentElement(); } if (v instanceof Declaration) { v = ((Declaration) v).getValueType(); } Element type; if (v instanceof SimpleTypeRef) { return getType(((SimpleTypeRef) v).getName()) instanceof com.ochafik.lang.jnaerator.parser.Enum; } return false; // TODO ? }
public boolean isEnumItem(Identifier ident) { Element v = getVariable(ident); if (v instanceof Declarator) { v = ((Declarator) v).getParentElement(); } if (v instanceof Declaration) { v = ((Declaration) v).getValueType(); } Element type; if (v instanceof SimpleTypeRef) { return getType(((SimpleTypeRef) v).getName()) instanceof com.ochafik.lang.jnaerator.parser.Enum; } return false; // TODO ? }
for (Declaration d : s.getDeclarations()) { if (d instanceof VariablesDeclaration) { TypeRef varsType = d.getValueType(); for (Declarator sto : ((VariablesDeclaration) d).getDeclarators()) { Expression so = sizeofToJava(as(sto.mutateType(varsType), TypeRef.class), libraryClassName);
for (Declaration d : s.getDeclarations()) { if (d instanceof VariablesDeclaration) { TypeRef varsType = d.getValueType(); for (Declarator sto : ((VariablesDeclaration) d).getDeclarators()) { Expression so = sizeofToJava(as(sto.mutateType(varsType), TypeRef.class), libraryClassName);