/** * {@inheritDoc} */ public FieldList<FieldDescription.InDefinedShape> asDefined() { List<FieldDescription.InDefinedShape> declaredForms = new ArrayList<FieldDescription.InDefinedShape>(size()); for (FieldDescription fieldDescription : this) { declaredForms.add(fieldDescription.asDefined()); } return new Explicit<FieldDescription.InDefinedShape>(declaredForms); }
/** * {@inheritDoc} */ public ByteCodeElement.Token.TokenList<FieldDescription.Token> asTokenList(ElementMatcher<? super TypeDescription> matcher) { List<FieldDescription.Token> tokens = new ArrayList<FieldDescription.Token>(size()); for (FieldDescription fieldDescription : this) { tokens.add(fieldDescription.asToken(matcher)); } return new ByteCodeElement.Token.TokenList<FieldDescription.Token>(tokens); }