JTBProcessor extends GJDepthFirst<Node, Node> implements
      ADLJTBParser,
      ParserConstants { public Definition parseADL(final InputStream is, final String definitionName, final String filename) throws ADLException { final Parser parser = new Parser(is); ADLFile content; try { content = parser.ADLFile(); } catch (final ParseException e) { final ErrorLocator locator = new BasicErrorLocator(filename, e.currentToken.next.beginLine, e.currentToken.next.endLine, e.currentToken.next.beginColumn, e.currentToken.next.endColumn); errorManager.logFatal(ADLErrors.PARSE_ERROR, locator, e.getMessage()); return null; } catch (final TokenMgrError e) { final ErrorLocator locator = new BasicErrorLocator(filename, -1, -1); errorManager.logFatal(ADLErrors.PARSE_ERROR, locator, e.getMessage()); return null; } this.definitionName = definitionName; this.filename = filename; typeParameters = new HashSet<String>(); return (Definition) visit(content, null); }  Definition parseADL(final InputStream is, final String definitionName,
      final String filename); @Override Node visit(final ADLFile n, final Node argu); @Override Node visit(final ImportDefinition n, final Node argu); @Override Node visit(final ArchitectureDefinition n, final Node argu); @Override Node visit(final TypeDefinition n, final Node argu); @Override Node visit(final ExtendedTypeDefinitions n, final Node argu); @Override Node visit(final TypeDefinitionReference n, final Node argu); @Override Node visit(final PrimitiveDefinition n, final Node argu); @Override Node visit(final FormalParameterDeclaration n, final Node argu); @Override Node visit(final ExtendedPrimitiveDefinitions n, final Node argu); @Override Node visit(final PrimitiveDefinitionReference n, final Node argu); @Override Node visit(final ArgumentAssignement n, final Node argu); @Override Node visit(final org.ow2.mind.adl.jtb.syntaxtree.Argument n,
      final Node argu); @Override Node visit(final CompositeDefinition n, final Node argu); @Override Node visit(final FormalTypeParameterDeclaration n, final Node argu); @Override Node visit(final CompositeDefinitionReference n, final Node argu); @Override Node visit(final TypeArgumentAssignement n, final Node argu); @Override Node visit(final org.ow2.mind.adl.jtb.syntaxtree.TypeArgument n,
      final Node argu); @Override Node visit(final ExtendedCompositeDefinitions n, final Node argu); @Override Node visit(final InterfaceDefinition n, final Node argu); @Override Node visit(final FunctionalInterfaceDefinition n, final Node argu); @Override Node visit(final FlowInterfaceDefinition n, final Node argu); @Override Node visit(final FlowType n, final Node argu); @Override Node visit(final IDTType n, final Node argu); @Override Node visit(final AttributeDefinition n, final Node argu); @Override Node visit(final AttributeType n, final Node argu); @Override Node visit(final CompoundAttributeValue n, final Node argu); @Override Node visit(final CompoundAttributeValueField n, final Node argu); @Override Node visit(final CompoundFieldName n, final Node argu); @Override Node visit(final DataDefinition n, final Node argu); @Override Node visit(final DataFile n, final Node argu); @Override Node visit(final org.ow2.mind.adl.jtb.syntaxtree.DataField n,
      final Node argu); @Override Node visit(final ImplementationDefinition n, final Node argu); @Override Node visit(final BindingDefinition n, final Node argu); @Override Node visit(final SubComponentDefinition n, final Node argu); @Override Node visit(final SimpleSubComponentReference n, final Node argu); @Override Node visit(final CompositeAnonymousDefinition n, final Node argu); @Override Node visit(final PrimitiveAnonymousDefinition n, final Node argu); @Override Node visit(final CompositeAnonymousExtension n, final Node argu); @Override Node visit(final PrimitiveAnonymousExtension n, final Node argu); @Override Node visit(final org.ow2.mind.adl.jtb.syntaxtree.Annotation n,
      final Node argu); @Override Node visit(final AnnotationParameters n, final Node argu); @Override Node visit(final AnnotationValuePair n, final Node argu); @Override Node visit(final AnnotationAnnotationValue n, final Node argu); @Override Node visit(final ArrayAnnotationValue n, final Node argu); @Override Node visit(final StringValue n, final Node argu); @Override Node visit(final IntegerValue n, final Node argu); @Override Node visit(final BooleanValue n, final Node argu); @Override Node visit(final ReferenceValue n, final Node argu); @Override Node visit(final NullValue n, final Node argu); @Override Node visit(final PathValue n, final Node argu); static final String ADL_DTD; }
@Test(groups = {"functional"}) public void test1() throws Exception { final Definition node = processor.parseADL(getADL("Test1.adl"), "Test1", "Test1.adl"); assertTrue(node instanceof Definition); }