public void classBegin(int access, String name) { s = root.getScope(Scope.classIdentity(name)); s.access = Access.modifier(access); s.kind = Kind.CLASS; }
private Scope add(Scope declaring, Scope enclosing, int modifiers, TypeVariable<?>[] typeVariables, Kind kind, String id, Type mainType, Type[] parameterTypes, Type exceptionTypes[]) { Scope scope = declaring.getScope(id); assert scope.access == Access.UNKNOWN; scope.setAccess(Access.modifier(modifiers)); scope.setKind(kind); scope.setGenericParameter(convert(typeVariables)); scope.setBase(convert(scope, mainType)); scope.setParameterTypes(convert(parameterTypes)); scope.setExceptionTypes(convert(exceptionTypes)); scope.setDeclaring(declaring); scope.setEnclosing(enclosing); return scope; }
@Override public void implementsInterfaces(TypeRef names[]) { s.setParameterTypes(convert(names)); }
@Override public void classEnd() { if (enclosing != null) s.setEnclosing(enclosing); if (declaring != null) s.setDeclaring(declaring); }
public void setEnclosing(Scope enclosing) { this.enclosing = enclosing; if (this.enclosing != null) { this.enclosing.add(this); } }
private Scope add(Scope declaring, Scope enclosing, int modifiers, TypeVariable< ? >[] typeVariables, Kind kind, String id, Type mainType, Type[] parameterTypes, Type exceptionTypes[]) { Scope scope = declaring.getScope(id); assert scope.access == Access.UNKNOWN; scope.setAccess(Access.modifier(modifiers)); scope.setKind(kind); scope.setGenericParameter(convert(typeVariables)); scope.setBase(convert(scope, mainType)); scope.setParameterTypes(convert(parameterTypes)); scope.setExceptionTypes(convert(exceptionTypes)); scope.setDeclaring(declaring); scope.setEnclosing(enclosing); return scope; }
@Override public void implementsInterfaces(TypeRef names[]) { s.setParameterTypes(convert(names)); }
private Scope add(Scope declaring, Scope enclosing, int modifiers, TypeVariable< ? >[] typeVariables, Kind kind, String id, Type mainType, Type[] parameterTypes, Type exceptionTypes[]) { Scope scope = declaring.getScope(id); assert scope.access == Access.UNKNOWN; scope.setAccess(Access.modifier(modifiers)); scope.setKind(kind); scope.setGenericParameter(convert(typeVariables)); scope.setBase(convert(scope, mainType)); scope.setParameterTypes(convert(parameterTypes)); scope.setExceptionTypes(convert(exceptionTypes)); scope.setDeclaring(declaring); scope.setEnclosing(enclosing); return scope; }
@Override public void implementsInterfaces(TypeRef names[]) { s.setParameterTypes(convert(names)); }
private Scope add(Scope declaring, Scope enclosing, int modifiers, TypeVariable<?>[] typeVariables, Kind kind, String id, Type mainType, Type[] parameterTypes, Type exceptionTypes[]) { Scope scope = declaring.getScope(id); assert scope.access == Access.UNKNOWN; scope.setAccess(Access.modifier(modifiers)); scope.setKind(kind); scope.setGenericParameter(convert(typeVariables)); scope.setBase(convert(scope, mainType)); scope.setParameterTypes(convert(parameterTypes)); scope.setExceptionTypes(convert(exceptionTypes)); scope.setDeclaring(declaring); scope.setEnclosing(enclosing); return scope; }
@Override public void implementsInterfaces(TypeRef names[]) { s.setParameterTypes(convert(names)); }
private Scope add(Scope declaring, Scope enclosing, int modifiers, TypeVariable< ? >[] typeVariables, Kind kind, String id, Type mainType, Type[] parameterTypes, Type exceptionTypes[]) { Scope scope = declaring.getScope(id); assert scope.access == Access.UNKNOWN; scope.setAccess(Access.modifier(modifiers)); scope.setKind(kind); scope.setGenericParameter(convert(typeVariables)); scope.setBase(convert(scope, mainType)); scope.setParameterTypes(convert(parameterTypes)); scope.setExceptionTypes(convert(exceptionTypes)); scope.setDeclaring(declaring); scope.setEnclosing(enclosing); return scope; }
@Override public void implementsInterfaces(TypeRef names[]) { s.setParameterTypes(convert(names)); }