Examples of MetadataParser


Examples of com.itstherules.parser.MetaDataParser

public class MetaDataScalar {
  public String value(File file) {
    IOHelper ioHelper = new IOHelper(file);
    new FlvHeader(ioHelper);
    MetaDataParser parseMeta = new MetaDataParser(ioHelper);
    parseMeta.findMetaTag();
    StringWriter writer = new StringWriter();
    try {
      parseMeta.writeMetaData(writer);
    } catch (Exception e1) {
    }
    return writer.toString();
  }
View Full Code Here

Examples of com.strobel.assembler.metadata.MetadataParser

                }

                final FieldDefinition switchMapField;

                try {
                    final FieldReference r = new MetadataParser(currentType.getResolver()).parseField(
                        currentType,
                        switchMapMethod.getName(),
                        switchMapMethod.getReturnType().getErasedSignature()
                    );
View Full Code Here

Examples of com.strobel.assembler.metadata.MetadataParser

        if (internalName.length() == 1) {
            //
            // Hack to get around classes whose descriptors clash with primitive types.
            //

            final MetadataParser parser = new MetadataParser(IMetadataResolver.EMPTY);
            final TypeReference reference = parser.parseTypeDescriptor(internalName);

            type = metadataSystem.resolve(reference);
        }
        else {
            type = metadataSystem.lookupType(internalName);
View Full Code Here

Examples of com.strobel.assembler.metadata.MetadataParser

        if (typeName.length() == 1) {
            //
            // Hack to get around classes whose descriptors clash with primitive types.
            //

            final MetadataParser parser = new MetadataParser(IMetadataResolver.EMPTY);
            final TypeReference reference = parser.parseTypeDescriptor(typeName);

            type = metadataSystem.resolve(reference);
        }
        else {
            type = metadataSystem.lookupType(typeName);
View Full Code Here

Examples of com.strobel.assembler.metadata.MetadataParser

        if (declaringType.getCompilerMajorVersion() < CompilerTarget.JDK1_6.majorVersion) {
            return;
        }

        final TypeReference annotationType = new MetadataParser(declaringType).parseTypeDescriptor(OVERRIDE_ANNOTATION_NAME);

        final List<MethodReference> candidates = MetadataHelper.findMethods(
            declaringType,
            new Predicate<MethodReference>() {
                @Override
View Full Code Here

Examples of com.strobel.assembler.metadata.MetadataParser

        }
        else {
            return;
        }

        final MetadataParser parser;
        final TypeDefinition currentType = context.getCurrentType();

        if (currentType != null) {
            parser = new MetadataParser(currentType);
        }
        else {
            parser = new MetadataParser(IMetadataResolver.EMPTY);
        }

        final TypeReference declaringType = parser.parseTypeDescriptor("java/lang/" + jvmType.name());
        final FieldReference field = parser.parseField(declaringType, fieldName, jvmType.getDescriptorPrefix());

        if (currentType != null &&
            node.getParent() instanceof VariableInitializer &&
            node.getParent().getParent() instanceof FieldDeclaration &&
            StringUtilities.equals(currentType.getInternalName(), declaringType.getInternalName())) {
View Full Code Here

Examples of com.strobel.assembler.metadata.MetadataParser

                }

                final FieldDefinition switchMapField;

                try {
                    final FieldReference r = new MetadataParser(currentType.getResolver()).parseField(
                        currentType,
                        switchMapMethod.getName(),
                        switchMapMethod.getReturnType().getErasedSignature()
                    );
View Full Code Here

Examples of fr.imag.adele.apam.declarations.encoding.ipojo.MetadataParser

     * parse all the declared  components
     */
    info("Parsing Apam metadata for " + artifact.getId()+ " from " + artifact.getFile());
    StringBuilder contents = new StringBuilder("    contains components: ");
   
    Decoder<Element> parser = new MetadataParser();
   
    for (Element element : metadata.getElements()) {
      ComponentDeclaration declaration = parser.decode(element,reporter);
     
      if (declaration == null)
        continue;
   
      components.add(declaration);
View Full Code Here

Examples of fr.imag.adele.apam.declarations.encoding.ipojo.MetadataParser

     
        /*
         *  Parse metadata to get APAM core declaration
         */
    try {
      Decoder parser = new MetadataParser(this);
      this.declaration = parser.decode(m_componentMetadata,this);

    } catch (Exception e) {
      e.printStackTrace();
      this.declaration    = null;
      this.declarationError   = new ConfigurationException(e.getLocalizedMessage());
View Full Code Here

Examples of org.apache.chemistry.opencmis.client.parser.MetadataParser

        this.properties = props;
    }
   
   
    public PropertyMapper getPropertyMapper(String contentType) {
        MetadataParser parser = getParser(contentType);
        return parser.getMapper();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.