public void visitFromEntryPointFactPattern( FromEntryPointFactPattern pattern, boolean isSubPattern ) { buf.append( indentation ); if ( !isSubPattern && isDSLEnhanced ) { // adding passthrough markup buf.append( ">" ); } if ( pattern.getFactPattern() != null ) { generateFactPattern( pattern.getFactPattern() ); } buf.append( " from entry-point \"" + pattern.getEntryPointName() + "\"\n" ); }
public void visitFromEntryPointFactPattern( FromEntryPointFactPattern pattern, boolean isSubPattern ) { buf.append( indentation ); if ( !isSubPattern && isDSLEnhanced ) { // adding passthrough markup buf.append( ">" ); } if ( pattern.getFactPattern() != null ) { generateFactPattern( pattern.getFactPattern() ); } buf.append( " from entry-point \"" + pattern.getEntryPointName() + "\"\n" ); }
private IPattern findByFactPattern(List<IPattern> patterns, String boundName) { if ( boundName == null ) { return null; } for ( IPattern ifp : patterns ) { if ( ifp instanceof FactPattern ) { FactPattern fp = (FactPattern) ifp; if ( fp.getBoundName() != null && fp.getBoundName().equals( boundName ) ) { return fp; } } else if ( ifp instanceof FromEntryPointFactPattern ) { FromEntryPointFactPattern fefp = (FromEntryPointFactPattern) ifp; FactPattern fp = fefp.getFactPattern(); if ( fp.getBoundName() != null && fp.getBoundName().equals( boundName ) ) { return fp; } } } return null; }
private IPattern findByFactPattern(List<IPattern> patterns, String boundName) { if ( boundName == null ) { return null; } for ( IPattern ifp : patterns ) { if ( ifp instanceof FactPattern ) { FactPattern fp = (FactPattern) ifp; if ( fp.getBoundName() != null && fp.getBoundName().equals( boundName ) ) { return fp; } } else if ( ifp instanceof FromEntryPointFactPattern ) { FromEntryPointFactPattern fefp = (FromEntryPointFactPattern) ifp; FactPattern fp = fefp.getFactPattern(); if ( fp.getBoundName() != null && fp.getBoundName().equals( boundName ) ) { return fp; } } } return null; }
} else if ( ifp instanceof FromEntryPointFactPattern ) { FromEntryPointFactPattern fep = (FromEntryPointFactPattern) ifp; fp = fep.getFactPattern(); } else { throw new IllegalArgumentException( "Inexpected IFactPattern implementation found." );
} else if ( ifp instanceof FromEntryPointFactPattern ) { FromEntryPointFactPattern fep = (FromEntryPointFactPattern) ifp; fp = fep.getFactPattern(); } else { throw new IllegalArgumentException( "Inexpected IFactPattern implementation found." );