FunctionNode extends AbstractNode implements IFunction { public List< IMetaData > getMetaData( final MetaData metaDataName ) { if ( metaDataList.containsKey( metaDataName ) ) { return metaDataList.get( metaDataName ); } else { return new ArrayList< IMetaData >(); } } protected  FunctionNode( final IParserNode node ); void add( final IMetaData metaData ); void add( final Modifier modifier ); @Override FunctionNode compute(); List< IParserNode > findPrimaryStatementInBody( final String[] primaryNames ); List< IParserNode > findPrimaryStatementsInBody( final String primaryName ); List< IMetaData > getAllMetaData(); IParserNode getAsDoc(); IParserNode getBody(); int getCyclomaticComplexity(); Map< String, IParserNode > getLocalVariables(); List< IMetaData > getMetaData( final MetaData metaDataName ); int getMetaDataCount(); List< IParserNode > getMultiLinesComment(); String getName(); List< IParameter > getParameters(); IIdentifierNode getReturnType(); int getStatementNbInBody(); IParserNode getSuperCall(); boolean is( final Modifier modifier ); boolean isEventHandler(); boolean isGetter(); boolean isOverriden(); boolean isPublic(); boolean isSetter();  }
@Test public void testGetMetaData() { assertEquals( 1, getHeight.getMetaDataCount() ); assertEquals( 0, isTrueGetter.getMetaDataCount() ); assertEquals( 1, flexunit4Test.getMetaData( MetaData.TEST ).size() ); assertEquals( "Test", flexunit4Test.getMetaData( MetaData.TEST ).get( 0 ).getName() ); assertEquals( 0, flexunit4Test.getMetaData( MetaData.BEFORE ).size() ); }