private static List<Object> resolveCore( final AstNode location, final String name, final NameResolveMode mode) { final Set<Object> results = FindDeclarationVisitor.resolveName(location, name, mode); if (results.isEmpty()) { return ReadOnlyList.emptyList(); } return new ReadOnlyList<>(Object.class, results); }
private static List<Object> resolveCore( final AstNode location, final String name, final NameResolveMode mode) { final Set<Object> results = FindDeclarationVisitor.resolveName(location, name, mode); if (results.isEmpty()) { return ReadOnlyList.emptyList(); } return new ReadOnlyList<>(Object.class, results); }
private static List<Object> resolveCore( final AstNode location, final String name, final NameResolveMode mode) { final Set<Object> results = FindDeclarationVisitor.resolveName(location, name, mode); if (results.isEmpty()) { return ReadOnlyList.emptyList(); } return new ReadOnlyList<>(Object.class, results); }
ParameterBuilder( final MethodBuilder declaringMethod, final int position, final String name, final Type<?> parameterType) { _declaringMethod = VerifyArgument.notNull(declaringMethod, "declaringMethod"); _position = position; _name = name != null ? name : "p" + position; _parameterType = VerifyArgument.notNull(parameterType, "parameterType"); _annotations = ReadOnlyList.emptyList(); }
ParameterBuilder( final MethodBuilder declaringMethod, final int position, final String name, final Type<?> parameterType) { _declaringMethod = VerifyArgument.notNull(declaringMethod, "declaringMethod"); _position = position; _name = name != null ? name : "p" + position; _parameterType = VerifyArgument.notNull(parameterType, "parameterType"); _annotations = ReadOnlyList.emptyList(); }
ParameterBuilder( final MethodBuilder declaringMethod, final int position, final String name, final Type<?> parameterType) { _declaringMethod = VerifyArgument.notNull(declaringMethod, "declaringMethod"); _position = position; _name = name != null ? name : "p" + position; _parameterType = VerifyArgument.notNull(parameterType, "parameterType"); _annotations = ReadOnlyList.emptyList(); }
TypeBuilder() { this.constantPool = new ConstantPool(); this.constructorBuilders = new ArrayList<>(); this.methodBuilders = new ArrayList<>(); this.fieldBuilders = new ArrayList<>(); this.genericParameterBuilders = new ArrayList<>(); this.methodOverrides = new ArrayList<>(); _constructors = ConstructorList.empty(); _methods = MethodList.empty(); _fields = FieldList.empty(); _typeBindings = TypeBindings.empty(); _annotations = ReadOnlyList.emptyList(); _protectionDomain = CallerResolver.getCallerClass(1).getProtectionDomain(); }
public static <A extends Annotation> AnnotationBuilder<A> create(final Type<A> annotationType) { checkProperties( VerifyArgument.notNull(annotationType, "annotationType"), MethodList.empty(), ReadOnlyList.emptyList() ); return new AnnotationBuilder<>(annotationType, MethodList.empty(), ReadOnlyList.emptyList()); }
TypeBuilder() { this.constantPool = new ConstantPool(); this.constructorBuilders = new ArrayList<>(); this.methodBuilders = new ArrayList<>(); this.fieldBuilders = new ArrayList<>(); this.genericParameterBuilders = new ArrayList<>(); this.methodOverrides = new ArrayList<>(); _constructors = ConstructorList.empty(); _methods = MethodList.empty(); _fields = FieldList.empty(); _typeBindings = TypeBindings.empty(); _annotations = ReadOnlyList.emptyList(); _protectionDomain = CallerResolver.getCallerClass(1).getProtectionDomain(); }
public static <A extends Annotation> AnnotationBuilder<A> create(final Type<A> annotationType) { checkProperties( VerifyArgument.notNull(annotationType, "annotationType"), MethodList.empty(), ReadOnlyList.emptyList() ); return new AnnotationBuilder<>(annotationType, MethodList.empty(), ReadOnlyList.emptyList()); }
public static <A extends Annotation> AnnotationBuilder<A> create(final Type<A> annotationType) { checkProperties( VerifyArgument.notNull(annotationType, "annotationType"), MethodList.empty(), ReadOnlyList.emptyList() ); return new AnnotationBuilder<>(annotationType, MethodList.empty(), ReadOnlyList.emptyList()); }
TypeBuilder() { this.constantPool = new ConstantPool(); this.constructorBuilders = new ArrayList<>(); this.methodBuilders = new ArrayList<>(); this.fieldBuilders = new ArrayList<>(); this.genericParameterBuilders = new ArrayList<>(); this.methodOverrides = new ArrayList<>(); _constructors = ConstructorList.empty(); _methods = MethodList.empty(); _fields = FieldList.empty(); _typeBindings = TypeBindings.empty(); _annotations = ReadOnlyList.emptyList(); _protectionDomain = CallerResolver.getCallerClass(1).getProtectionDomain(); }
FieldBuilder(final TypeBuilder typeBuilder, final String name, final Type<?> type, final int modifiers, final Object constantValue) { _constantValue = constantValue; _typeBuilder = VerifyArgument.notNull(typeBuilder, "typeBuilder"); _name = VerifyArgument.notNull(name, "name"); _type = VerifyArgument.notNull(type, "type"); _modifiers = modifiers; _annotations = ReadOnlyList.emptyList(); }
FieldBuilder(final TypeBuilder typeBuilder, final String name, final Type<?> type, final int modifiers, final Object constantValue) { _constantValue = constantValue; _typeBuilder = VerifyArgument.notNull(typeBuilder, "typeBuilder"); _name = VerifyArgument.notNull(name, "name"); _type = VerifyArgument.notNull(type, "type"); _modifiers = modifiers; _annotations = ReadOnlyList.emptyList(); }
FieldBuilder(final TypeBuilder typeBuilder, final String name, final Type<?> type, final int modifiers, final Object constantValue) { _constantValue = constantValue; _typeBuilder = VerifyArgument.notNull(typeBuilder, "typeBuilder"); _name = VerifyArgument.notNull(name, "name"); _type = VerifyArgument.notNull(type, "type"); _modifiers = modifiers; _annotations = ReadOnlyList.emptyList(); }
public static <A extends Annotation> AnnotationBuilder<A> create( final Type<A> annotationType, final MethodList properties, final ReadOnlyList<Object> values) { checkProperties( VerifyArgument.notNull(annotationType, "annotationType"), properties, values ); return new AnnotationBuilder<>( annotationType, properties != null ? properties : MethodList.empty(), values != null ? values : ReadOnlyList.emptyList() ); }
public static <A extends Annotation> AnnotationBuilder<A> create( final Type<A> annotationType, final MethodList properties, final ReadOnlyList<Object> values) { checkProperties( VerifyArgument.notNull(annotationType, "annotationType"), properties, values ); return new AnnotationBuilder<>( annotationType, properties != null ? properties : MethodList.empty(), values != null ? values : ReadOnlyList.emptyList() ); }
public static <A extends Annotation> AnnotationBuilder<A> create( final Type<A> annotationType, final MethodList properties, final ReadOnlyList<Object> values) { checkProperties( VerifyArgument.notNull(annotationType, "annotationType"), properties, values ); return new AnnotationBuilder<>( annotationType, properties != null ? properties : MethodList.empty(), values != null ? values : ReadOnlyList.emptyList() ); }
MethodBuilder( final String name, final int modifiers, final Type<?> returnType, final TypeList parameterTypes, final TypeList thrownTypes, final TypeBuilder<?> declaringType) { _name = VerifyArgument.notNullOrWhitespace(name, "name"); _modifiers = modifiers; _signatureType = new SignatureType( returnType != null ? returnType : PrimitiveTypes.Void, parameterTypes != null ? parameterTypes : TypeList.empty() ); _thrownTypes = thrownTypes != null ? thrownTypes : TypeList.empty(); _declaringType = VerifyArgument.notNull(declaringType, "declaringType"); _annotations = ReadOnlyList.emptyList(); setSignature(returnType, parameterTypes); }
MethodBuilder( final String name, final int modifiers, final Type<?> returnType, final TypeList parameterTypes, final TypeList thrownTypes, final TypeBuilder<?> declaringType) { _name = VerifyArgument.notNullOrWhitespace(name, "name"); _modifiers = modifiers; _signatureType = new SignatureType( returnType != null ? returnType : PrimitiveTypes.Void, parameterTypes != null ? parameterTypes : TypeList.empty() ); _thrownTypes = thrownTypes != null ? thrownTypes : TypeList.empty(); _declaringType = VerifyArgument.notNull(declaringType, "declaringType"); _annotations = ReadOnlyList.emptyList(); setSignature(returnType, parameterTypes); }